diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-02 06:40:27 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-02 06:40:27 +0000 |
commit | 2595a15ebeb6fc46b7cb241d01ec0c2460ec2111 (patch) | |
tree | 18a8f0f4ac5a86dacfa74c3537551ec39bc85e75 /src/gui/tabcontrol.cpp | |
parent | 1d90725a4001fab9d3922b2cbcceeee5e2d1686f (diff) | |
download | tellico-2595a15ebeb6fc46b7cb241d01ec0c2460ec2111.tar.gz tellico-2595a15ebeb6fc46b7cb241d01ec0c2460ec2111.zip |
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
Diffstat (limited to 'src/gui/tabcontrol.cpp')
-rw-r--r-- | src/gui/tabcontrol.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
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 <qtabbar.h> -#include <qobjectlist.h> +#include <tqtabbar.h> +#include <tqobjectlist.h> 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<QWidget*>(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) { |