|
|
@ -136,16 +136,16 @@ KDE_NO_CDTOR_EXPORT Preferences::Preferences(PartBase * player, Settings * setti
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
KDE_NO_EXPORT void Preferences::setPage (const char * name) {
|
|
|
|
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;
|
|
|
|
if (!o) return;
|
|
|
|
TQFrame * page = static_cast <TQFrame *> (TQT_TQWIDGET(o));
|
|
|
|
TQFrame * page = static_cast <TQFrame *> (TQT_TQWIDGET(o));
|
|
|
|
TQWidget * w = page->parentWidget ();
|
|
|
|
TQWidget * w = page->parentWidget ();
|
|
|
|
while (w && !w->inherits (TQTABWIDGET_OBJECT_NAME_STRING))
|
|
|
|
while (w && !w->inherits ("TQTabWidget"))
|
|
|
|
w = w->parentWidget ();
|
|
|
|
w = w->parentWidget ();
|
|
|
|
if (!w) return;
|
|
|
|
if (!w) return;
|
|
|
|
TQTabWidget * t = static_cast <TQTabWidget*> (w);
|
|
|
|
TQTabWidget * t = static_cast <TQTabWidget*> (w);
|
|
|
|
t->setCurrentPage (t->indexOf(page));
|
|
|
|
t->setCurrentPage (t->indexOf(page));
|
|
|
|
if (!t->parentWidget() || !t->parentWidget()->inherits (TQFRAME_OBJECT_NAME_STRING))
|
|
|
|
if (!t->parentWidget() || !t->parentWidget()->inherits ("TQFrame"))
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
showPage (pageIndex (t->parentWidget ()));
|
|
|
|
showPage (pageIndex (t->parentWidget ()));
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -189,7 +189,7 @@ KDE_NO_EXPORT void Preferences::removePrefPage(PreferencesPage * page) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (!tab->count ()) {
|
|
|
|
if (!tab->count ()) {
|
|
|
|
TQWidget * w = tab->parentWidget ();
|
|
|
|
TQWidget * w = tab->parentWidget ();
|
|
|
|
while (w && !w->inherits (TQFRAME_OBJECT_NAME_STRING))
|
|
|
|
while (w && !w->inherits ("TQFrame"))
|
|
|
|
w = w->parentWidget ();
|
|
|
|
w = w->parentWidget ();
|
|
|
|
delete w;
|
|
|
|
delete w;
|
|
|
|
entries.erase (en_it);
|
|
|
|
entries.erase (en_it);
|
|
|
|