summaryrefslogtreecommitdiffstats
path: root/kexi/formeditor/factories/stdwidgetfactory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/formeditor/factories/stdwidgetfactory.cpp')
-rw-r--r--kexi/formeditor/factories/stdwidgetfactory.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/kexi/formeditor/factories/stdwidgetfactory.cpp b/kexi/formeditor/factories/stdwidgetfactory.cpp
index 2607fcca..e6b13f0e 100644
--- a/kexi/formeditor/factories/stdwidgetfactory.cpp
+++ b/kexi/formeditor/factories/stdwidgetfactory.cpp
@@ -511,7 +511,7 @@ StdWidgetFactory::startEditing(const TQCString &classname, TQWidget *w, KFormDes
else if(classname == "KPushButton")
{
KPushButton *push = static_cast<KPushButton*>(w);
- TQRect r = w->tqstyle().subRect(TQStyle::SR_PushButtonContents, w);
+ TQRect r = w->style().subRect(TQStyle::SR_PushButtonContents, w);
TQRect editorRect = TQRect(push->x() + r.x(), push->y() + r.y(), r.width(), r.height());
//r.setX(r.x() + 5);
//r.setY(r.y() + 5);
@@ -523,7 +523,7 @@ StdWidgetFactory::startEditing(const TQCString &classname, TQWidget *w, KFormDes
else if(classname == TQRADIOBUTTON_OBJECT_NAME_STRING)
{
TQRadioButton *radio = static_cast<TQRadioButton*>(w);
- TQRect r = w->tqstyle().subRect(TQStyle::SR_RadioButtonContents, w);
+ TQRect r = w->style().subRect(TQStyle::SR_RadioButtonContents, w);
TQRect editorRect = TQRect(radio->x() + r.x(), radio->y() + r.y(), r.width(), r.height());
createEditor(classname, radio->text(), radio, container, editorRect, TQt::AlignAuto);
return true;
@@ -533,7 +533,7 @@ StdWidgetFactory::startEditing(const TQCString &classname, TQWidget *w, KFormDes
TQCheckBox *check = static_cast<TQCheckBox*>(w);
//TQRect r(check->geometry());
//r.setX(r.x() + 20);
- TQRect r = w->tqstyle().subRect(TQStyle::SR_CheckBoxContents, w);
+ TQRect r = w->style().subRect(TQStyle::SR_CheckBoxContents, w);
TQRect editorRect = TQRect(check->x() + r.x(), check->y() + r.y(), r.width(), r.height());
createEditor(classname, check->text(), check, container, editorRect, TQt::AlignAuto);
return true;
@@ -645,19 +645,19 @@ StdWidgetFactory::resizeEditor(TQWidget *editor, TQWidget *widget, const TQCStri
if(classname == TQRADIOBUTTON_OBJECT_NAME_STRING)
{
- r = widget->tqstyle().subRect(TQStyle::SR_RadioButtonContents, widget);
+ r = widget->style().subRect(TQStyle::SR_RadioButtonContents, widget);
p += r.topLeft();
s.setWidth(r.width());
}
else if(classname == TQCHECKBOX_OBJECT_NAME_STRING)
{
- r = widget->tqstyle().subRect(TQStyle::SR_CheckBoxContents, widget);
+ r = widget->style().subRect(TQStyle::SR_CheckBoxContents, widget);
p += r.topLeft();
s.setWidth(r.width());
}
else if(classname == "KPushButton")
{
- r = widget->tqstyle().subRect(TQStyle::SR_PushButtonContents, widget);
+ r = widget->style().subRect(TQStyle::SR_PushButtonContents, widget);
p += r.topLeft();
s = r.size();
}