summaryrefslogtreecommitdiffstats
path: root/kexi/formeditor/commands.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-07-11 21:42:08 +0900
committerMichele Calgaro <[email protected]>2023-07-13 09:04:02 +0900
commit462dc85dcb12aab8e19797dadf48799656708a54 (patch)
tree901511cb5d29b2a094b1149d0621add8cb15c0e9 /kexi/formeditor/commands.cpp
parent75cc9de8f47db776021b5e8153c930d9af2108b6 (diff)
downloadkoffice-462dc85dcb12aab8e19797dadf48799656708a54.tar.gz
koffice-462dc85dcb12aab8e19797dadf48799656708a54.zip
Replace _OBJECT_NAME_STRING defines with actual strings. This relates to the merging of tqtinterface with tqt3.
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit 20e4a19b0d7cc800d57be50c56d69023adae4046)
Diffstat (limited to 'kexi/formeditor/commands.cpp')
-rw-r--r--kexi/formeditor/commands.cpp8
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;