summaryrefslogtreecommitdiffstats
path: root/src/pref.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/pref.cpp')
-rw-r--r--src/pref.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/pref.cpp b/src/pref.cpp
index 670f4aa..c20ee14 100644
--- a/src/pref.cpp
+++ b/src/pref.cpp
@@ -139,15 +139,15 @@ KDE_NO_EXPORT void Preferences::setPage (const char * name) {
TQObject * o = child (name, TQFRAME_OBJECT_NAME_STRING);
if (!o) return;
TQFrame * page = static_cast <TQFrame *> (TQT_TQWIDGET(o));
- TQWidget * w = page->tqparentWidget ();
+ TQWidget * w = page->parentWidget ();
while (w && !w->inherits (TQTABWIDGET_OBJECT_NAME_STRING))
- w = w->tqparentWidget ();
+ w = w->parentWidget ();
if (!w) return;
TQTabWidget * t = static_cast <TQTabWidget*> (w);
t->setCurrentPage (t->indexOf(page));
- if (!t->tqparentWidget() || !t->tqparentWidget()->inherits (TQFRAME_OBJECT_NAME_STRING))
+ if (!t->parentWidget() || !t->parentWidget()->inherits (TQFRAME_OBJECT_NAME_STRING))
return;
- showPage (pageIndex (t->tqparentWidget ()));
+ showPage (pageIndex (t->parentWidget ()));
}
KDE_NO_EXPORT void Preferences::addPrefPage (PreferencesPage * page) {
@@ -188,9 +188,9 @@ KDE_NO_EXPORT void Preferences::removePrefPage(PreferencesPage * page) {
break;
}
if (!tab->count ()) {
- TQWidget * w = tab->tqparentWidget ();
+ TQWidget * w = tab->parentWidget ();
while (w && !w->inherits (TQFRAME_OBJECT_NAME_STRING))
- w = w->tqparentWidget ();
+ w = w->parentWidget ();
delete w;
entries.erase (en_it);
}