diff options
Diffstat (limited to 'kexi/formeditor/commands.cpp')
-rw-r--r-- | kexi/formeditor/commands.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kexi/formeditor/commands.cpp b/kexi/formeditor/commands.cpp index 3e22fcdd..10bd7eb3 100644 --- a/kexi/formeditor/commands.cpp +++ b/kexi/formeditor/commands.cpp @@ -378,10 +378,10 @@ AdjustSizeCommand::AdjustSizeCommand(int type, WidgetList &list, Form *form) { for(TQWidget *w = list.first(); w; w = list.next()) { - if(w->parentWidget() && w->parentWidget()->isA(TQWIDGETSTACK_OBJECT_NAME_STRING)) + if(w->parentWidget() && w->parentWidget()->isA("TQWidgetStack")) { w = w->parentWidget(); // widget is WidgetStack page - if(w->parentWidget() && w->parentWidget()->inherits(TQTABWIDGET_OBJECT_NAME_STRING)) // widget is tabwidget page + if(w->parentWidget() && w->parentWidget()->inherits("TQTabWidget")) // widget is tabwidget page w = w->parentWidget(); } @@ -888,7 +888,7 @@ CreateLayoutCommand::execute() TQCString classname; switch(m_type) { case Container::HSplitter: case Container::VSplitter: - classname = TQSPLITTER_OBJECT_NAME_STRING; break; + classname = "TQSplitter"; break; default: classname = Container::layoutTypeToString(m_type).latin1(); } @@ -1385,7 +1385,7 @@ DeleteWidgetCommand::DeleteWidgetCommand(WidgetList &list, Form *form) { TQWidget *w = it.current(); // Don't delete tabwidget or widgetstack pages - if(w->parentWidget()->inherits(TQWIDGETSTACK_OBJECT_NAME_STRING)) + if(w->parentWidget()->inherits("TQWidgetStack")) { list.remove(w); continue; |