From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- akregator/src/listtabwidget.cpp | 46 ++++++++++++++++++++--------------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'akregator/src/listtabwidget.cpp') 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 -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include #include @@ -47,14 +47,14 @@ class ListTabWidget::ListTabWidgetPrivate public: int idCounter; KMultiTabBar* tabBar; - QWidgetStack* stack; + TQWidgetStack* stack; NodeListView* current; int currentID; - QValueList views; - QMap idToView; - QHBoxLayout* layout; + TQValueList views; + TQMap idToView; + TQHBoxLayout* layout; ViewMode viewMode; - QMap captions; + TQMap 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("%1 (%2)").arg(d->captions[view]).arg(node->unread())); + //d->tabWidget->changeTab(view, TQString("%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 -- cgit v1.2.1