summaryrefslogtreecommitdiffstats
path: root/src/pref.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-07-11 21:36:24 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-07-12 17:59:20 +0900
commitb62a1922fab2031d49fa921cf4b5dae3d9c7091c (patch)
tree6888e3e22d1d06082cb80b3006fc9152f613b398 /src/pref.cpp
parent698d2bc316a4670b15fa4f4d6a61a0da3fc3a2a4 (diff)
downloadkmplayer-b62a1922fab2031d49fa921cf4b5dae3d9c7091c.tar.gz
kmplayer-b62a1922fab2031d49fa921cf4b5dae3d9c7091c.zip
Replace _OBJECT_NAME_STRING defines with actual strings. This relates to the merging of tqtinterface with tqt3.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 47d29ee63f76127afe48c487d3e8794b0d05508b)
Diffstat (limited to 'src/pref.cpp')
-rw-r--r--src/pref.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pref.cpp b/src/pref.cpp
index b18fb4c..d0388f8 100644
--- a/src/pref.cpp
+++ b/src/pref.cpp
@@ -136,16 +136,16 @@ KDE_NO_CDTOR_EXPORT Preferences::Preferences(PartBase * player, Settings * setti
}
KDE_NO_EXPORT void Preferences::setPage (const char * name) {
- TQObject * o = child (name, TQFRAME_OBJECT_NAME_STRING);
+ TQObject * o = child (name, "TQFrame");
if (!o) return;
TQFrame * page = static_cast <TQFrame *> (TQT_TQWIDGET(o));
TQWidget * w = page->parentWidget ();
- while (w && !w->inherits (TQTABWIDGET_OBJECT_NAME_STRING))
+ while (w && !w->inherits ("TQTabWidget"))
w = w->parentWidget ();
if (!w) return;
TQTabWidget * t = static_cast <TQTabWidget*> (w);
t->setCurrentPage (t->indexOf(page));
- if (!t->parentWidget() || !t->parentWidget()->inherits (TQFRAME_OBJECT_NAME_STRING))
+ if (!t->parentWidget() || !t->parentWidget()->inherits ("TQFrame"))
return;
showPage (pageIndex (t->parentWidget ()));
}
@@ -189,7 +189,7 @@ KDE_NO_EXPORT void Preferences::removePrefPage(PreferencesPage * page) {
}
if (!tab->count ()) {
TQWidget * w = tab->parentWidget ();
- while (w && !w->inherits (TQFRAME_OBJECT_NAME_STRING))
+ while (w && !w->inherits ("TQFrame"))
w = w->parentWidget ();
delete w;
entries.erase (en_it);