From 2595a15ebeb6fc46b7cb241d01ec0c2460ec2111 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 2 Jul 2011 06:40:27 +0000 Subject: TQt4 port tellico This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/tellico@1239054 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/gui/tabcontrol.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'src/gui/tabcontrol.cpp') diff --git a/src/gui/tabcontrol.cpp b/src/gui/tabcontrol.cpp index 145f632..208d8e4 100644 --- a/src/gui/tabcontrol.cpp +++ b/src/gui/tabcontrol.cpp @@ -13,25 +13,25 @@ #include "tabcontrol.h" -#include -#include +#include +#include using Tellico::GUI::TabControl; -TabControl::TabControl(QWidget* parent_, const char* name_/*=0*/) - : QTabWidget(parent_, name_) { +TabControl::TabControl(TQWidget* tqparent_, const char* name_/*=0*/) + : TQTabWidget(tqparent_, name_) { } -QTabBar* TabControl::tabBar() const { - return QTabWidget::tabBar(); +TQTabBar* TabControl::tabBar() const { + return TQTabWidget::tabBar(); } void TabControl::setFocusToFirstChild() { - QWidget* page = currentPage(); + TQWidget* page = currentPage(); Q_ASSERT(page); - QObjectList* list = page->queryList("QWidget"); - for(QObjectListIt it(*list); it.current(); ++it) { - QWidget* w = static_cast(it.current()); + TQObjectList* list = page->queryList(TQWIDGET_OBJECT_NAME_STRING); + for(TQObjectListIt it(*list); it.current(); ++it) { + TQWidget* w = TQT_TQWIDGET(it.current()); if(w->isFocusEnabled()) { w->setFocus(); break; @@ -43,7 +43,7 @@ void TabControl::setFocusToFirstChild() { // have to loop backwards since count() gets decremented on delete void TabControl::clear() { for(int i = count(); i > 0; --i) { - QWidget* w = page(i-1); + TQWidget* w = page(i-1); if(w) { removePage(w); delete w; @@ -52,8 +52,8 @@ void TabControl::clear() { } void TabControl::setTabBarHidden(bool hide_) { - QWidget* rightcorner = cornerWidget(TopRight); - QWidget* leftcorner = cornerWidget(TopLeft); + TQWidget* rightcorner = cornerWidget(TopRight); + TQWidget* leftcorner = cornerWidget(TopLeft); if(hide_) { if(leftcorner) { -- cgit v1.2.1