summaryrefslogtreecommitdiffstats
path: root/src/gui/fieldwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/fieldwidget.cpp')
-rw-r--r--src/gui/fieldwidget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/fieldwidget.cpp b/src/gui/fieldwidget.cpp
index 82ad186..4ac43df 100644
--- a/src/gui/fieldwidget.cpp
+++ b/src/gui/fieldwidget.cpp
@@ -93,7 +93,7 @@ FieldWidget::FieldWidget(Data::FieldPtr field_, TQWidget* parent_, const char* n
: TQWidget(parent_, name_), m_field(field_) {
TQHBoxLayout* l = new TQHBoxLayout(this, 2, 2); // parent, margin, spacing
l->addSpacing(4); // add some more space in the columns between widgets
- if(TQCString(tqstyle().name()).lower().find("keramik", 0, false) > -1) {
+ if(TQCString(style().name()).lower().find("keramik", 0, false) > -1) {
l->setMargin(1);
}
@@ -182,7 +182,7 @@ void FieldWidget::registerWidget() {
setFocusProxy(w);
}
- TQHBoxLayout* l = static_cast<TQHBoxLayout*>(tqlayout());
+ TQHBoxLayout* l = static_cast<TQHBoxLayout*>(layout());
l->insertWidget(FIELD_EDIT_WIDGET_INDEX, w, m_expands ? 1 : 0 /*stretch*/);
if(!m_expands) {
l->insertStretch(FIELD_EDIT_WIDGET_INDEX+1, 1 /*stretch*/);