diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /akregator/src/listtabwidget.cpp | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'akregator/src/listtabwidget.cpp')
-rw-r--r-- | akregator/src/listtabwidget.cpp | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/akregator/src/listtabwidget.cpp b/akregator/src/listtabwidget.cpp index 78f1d0d30..5434a4a6e 100644 --- a/akregator/src/listtabwidget.cpp +++ b/akregator/src/listtabwidget.cpp @@ -29,13 +29,13 @@ #include <kmultitabbar.h> -#include <qiconset.h> -#include <qlayout.h> -#include <qmap.h> -#include <qptrlist.h> -#include <qstring.h> -#include <qvaluelist.h> -#include <qwidgetstack.h> +#include <tqiconset.h> +#include <tqlayout.h> +#include <tqmap.h> +#include <tqptrlist.h> +#include <tqstring.h> +#include <tqvaluelist.h> +#include <tqwidgetstack.h> #include <kdebug.h> @@ -47,14 +47,14 @@ class ListTabWidget::ListTabWidgetPrivate public: int idCounter; KMultiTabBar* tabBar; - QWidgetStack* stack; + TQWidgetStack* stack; NodeListView* current; int currentID; - QValueList<NodeListView*> views; - QMap<int, NodeListView*> idToView; - QHBoxLayout* layout; + TQValueList<NodeListView*> views; + TQMap<int, NodeListView*> idToView; + TQHBoxLayout* layout; ViewMode viewMode; - QMap<QWidget*, QString> captions; + TQMap<TQWidget*, TQString> captions; }; @@ -125,7 +125,7 @@ void ListTabWidget::slotRootNodeChanged(NodeListView* view, TreeNode* node) if (unread > 0) { //uncomment this to append unread count - //d->tabWidget->changeTab(view, QString("<qt>%1 (%2)").arg(d->captions[view]).arg(node->unread())); + //d->tabWidget->changeTab(view, TQString("<qt>%1 (%2)").arg(d->captions[view]).arg(node->unread())); d->tabWidget->changeTab(view, d->captions[view]); } else @@ -152,14 +152,14 @@ void ListTabWidget::slotTabClicked(int id) } } -ListTabWidget::ListTabWidget(QWidget* parent, const char* name) : QWidget(parent, name), d(new ListTabWidgetPrivate) +ListTabWidget::ListTabWidget(TQWidget* parent, const char* name) : TQWidget(parent, name), d(new ListTabWidgetPrivate) { d->idCounter = 0; d->current = 0; d->currentID = -1; d->viewMode = verticalTabs; - d->layout = new QHBoxLayout(this); - //d->layout = new QGridLayout(this, 1, 2); + d->layout = new TQHBoxLayout(this); + //d->layout = new TQGridLayout(this, 1, 2); d->tabBar = new KMultiTabBar(KMultiTabBar::Vertical, this); d->tabBar->setStyle(KMultiTabBar::KDEV3ICON); //d->tabBar->setStyle(KMultiTabBar::KDEV3); @@ -167,10 +167,10 @@ ListTabWidget::ListTabWidget(QWidget* parent, const char* name) : QWidget(parent d->tabBar->setPosition(KMultiTabBar::Left); d->layout->addWidget(d->tabBar/*, 0, 0*/); - d->stack = new QWidgetStack(this); + d->stack = new TQWidgetStack(this); d->layout->addWidget(d->stack/*, 0, 1*/); -// connect(d->tabBar, SIGNAL(currentChanged(QWidget*)), this, SLOT(slotCurrentChanged(QWidget*))); +// connect(d->tabBar, TQT_SIGNAL(currentChanged(TQWidget*)), this, TQT_SLOT(slotCurrentChanged(TQWidget*))); } ListTabWidget::~ListTabWidget() @@ -196,21 +196,21 @@ ListTabWidget::ViewMode ListTabWidget::viewMode() const return d->viewMode; } -void ListTabWidget::addView(NodeListView* view, const QString& caption, const QPixmap& icon) +void ListTabWidget::addView(NodeListView* view, const TQString& caption, const TQPixmap& icon) { d->captions[view] = caption; - view->reparent(d->stack, QPoint(0,0)); + view->reparent(d->stack, TQPoint(0,0)); d->stack->addWidget(view); int tabId = d->idCounter++; d->tabBar->appendTab(icon, tabId, caption); d->idToView[tabId] = view; - connect(d->tabBar->tab(tabId), SIGNAL(clicked(int)), this, SLOT(slotTabClicked(int))); + connect(d->tabBar->tab(tabId), TQT_SIGNAL(clicked(int)), this, TQT_SLOT(slotTabClicked(int))); - connect(view, SIGNAL(signalNodeSelected(TreeNode*)), this, SIGNAL(signalNodeSelected(TreeNode*))); - connect(view, SIGNAL(signalRootNodeChanged(NodeListView*, TreeNode*)), this, SLOT(slotRootNodeChanged(NodeListView*, TreeNode*))); + connect(view, TQT_SIGNAL(signalNodeSelected(TreeNode*)), this, TQT_SIGNAL(signalNodeSelected(TreeNode*))); + connect(view, TQT_SIGNAL(signalRootNodeChanged(NodeListView*, TreeNode*)), this, TQT_SLOT(slotRootNodeChanged(NodeListView*, TreeNode*))); if (tabId == 0) // first widget |