summaryrefslogtreecommitdiffstats
path: root/kommander/executor
diff options
context:
space:
mode:
authorormorph <roma251078@mail.ru>2020-08-27 19:48:01 +0300
committerMichele Calgaro <michele.calgaro@yahoo.it>2020-08-28 20:54:25 +0900
commit155659674046c19b610d38cd2963628798add11d (patch)
tree9dbb4b553d33996ffc562ac8ab33533e7901087d /kommander/executor
parentf3edeac1f13d71e8e12bdc713f1b8c7ad936b548 (diff)
downloadtdewebdev-155659674046c19b610d38cd2963628798add11d.tar.gz
tdewebdev-155659674046c19b610d38cd2963628798add11d.zip
Rename *OBJECT_NAME_STRING
Signed-off-by: ormorph <roma251078@mail.ru> (cherry picked from commit ae3ed3d32920f5780af51aad9683b82179e9655d)
Diffstat (limited to 'kommander/executor')
-rw-r--r--kommander/executor/instance.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kommander/executor/instance.cpp b/kommander/executor/instance.cpp
index 863b0153..e23a206a 100644
--- a/kommander/executor/instance.cpp
+++ b/kommander/executor/instance.cpp
@@ -158,9 +158,9 @@ bool Instance::run()
return false;
// Handle both dialogs and main windows
- if (m_instance->inherits(TQDIALOG_OBJECT_NAME_STRING))
+ if (m_instance->inherits("TQDialog"))
dynamic_cast<TQDialog*>((TQWidget*)m_instance)->exec();
- else if (m_instance->inherits(TQMAINWINDOW_OBJECT_NAME_STRING))
+ else if (m_instance->inherits("TQMainWindow"))
{
kapp->setMainWidget(m_instance);
dynamic_cast<TQMainWindow*>((TQWidget*)m_instance)->show();
@@ -234,14 +234,14 @@ bool Instance::isFileValid(const KURL& fname) const
void Instance::setEnabled(const TQString& widgetName, bool enable)
{
TQObject* child = stringToWidget(widgetName);
- if (child && child->inherits(TQWIDGET_OBJECT_NAME_STRING))
+ if (child && child->inherits("TQWidget"))
((TQWidget*)child)->setEnabled(enable);
}
void Instance::setVisible(const TQString& widgetName, bool visible)
{
TQObject* child = stringToWidget(widgetName);
- if (child && child->inherits(TQWIDGET_OBJECT_NAME_STRING))
+ if (child && child->inherits("TQWidget"))
((TQWidget*)child)->setShown(visible);
}
@@ -250,7 +250,7 @@ void Instance::setText(const TQString& widgetName, const TQString& text)
TQObject* child = stringToWidget(widgetName);
if (kommanderWidget(child))
kommanderWidget(child)->handleDCOP(DCOP::setText, text);
- else if (child && child->inherits(TQLABEL_OBJECT_NAME_STRING))
+ else if (child && child->inherits("TQLabel"))
{
TQLabel* label = (TQLabel*)child;
if (label->pixmap())
@@ -269,7 +269,7 @@ TQString Instance::text(const TQString& widgetName)
TQObject* child = stringToWidget(widgetName);
if (kommanderWidget(child))
return kommanderWidget(child)->handleDCOP(DCOP::text);
- else if (child && child->inherits(TQLABEL_OBJECT_NAME_STRING))
+ else if (child && child->inherits("TQLabel"))
return ((TQLabel*)child)->text();
return TQString();
}
@@ -279,7 +279,7 @@ void Instance::setSelection(const TQString& widgetName, const TQString& text)
TQObject* child = stringToWidget(widgetName);
if (kommanderWidget(child))
kommanderWidget(child)->handleDCOP(DCOP::setSelection, text);
- else if (child && child->inherits(TQLABEL_OBJECT_NAME_STRING))
+ else if (child && child->inherits("TQLabel"))
((TQLabel*)child)->setText(text);
}
@@ -426,7 +426,7 @@ TQStringList Instance::associatedText(const TQString &widgetName)
TQString Instance::type(const TQString& widget)
{
TQObject* child = stringToWidget(widget);
- if (child && child->inherits(TQWIDGET_OBJECT_NAME_STRING))
+ if (child && child->inherits("TQWidget"))
return child->className();
return TQString();
}
@@ -438,9 +438,9 @@ TQStringList Instance::children(const TQString& parent, bool recursive)
TQObjectList* widgets;
if (!child)
child = TQT_TQOBJECT(m_instance);
- if (child->inherits(TQWIDGET_OBJECT_NAME_STRING))
+ if (child->inherits("TQWidget"))
{
- widgets = child->queryList(TQWIDGET_OBJECT_NAME_STRING, 0, false, recursive);
+ widgets = child->queryList("TQWidget", 0, false, recursive);
for (TQObject* w = widgets->first(); w; w = widgets->next())
if (w->name() && kommanderWidget(w))
matching.append(w->name());