summaryrefslogtreecommitdiffstats
path: root/src/newui/dtabwidget.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
commitd6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch)
treed109539636691d7b03036ca1c0ed29dbae6577cf /src/newui/dtabwidget.cpp
parent3331a47a9cad24795c7440ee8107143ce444ef34 (diff)
downloadtdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz
tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/newui/dtabwidget.cpp')
-rw-r--r--src/newui/dtabwidget.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/newui/dtabwidget.cpp b/src/newui/dtabwidget.cpp
index b9bf790a..db2e4c4e 100644
--- a/src/newui/dtabwidget.cpp
+++ b/src/newui/dtabwidget.cpp
@@ -19,14 +19,14 @@
***************************************************************************/
#include "dtabwidget.h"
-#include <qtoolbutton.h>
-#include <qtabbar.h>
+#include <tqtoolbutton.h>
+#include <tqtabbar.h>
#include <kconfig.h>
#include <kiconloader.h>
#include <kapplication.h>
-DTabWidget::DTabWidget(QWidget *parent, const char *name)
+DTabWidget::DTabWidget(TQWidget *parent, const char *name)
:KTabWidget(parent, name), m_closeButton(0)
{
setFocusPolicy(NoFocus);
@@ -37,7 +37,7 @@ DTabWidget::DTabWidget(QWidget *parent, const char *name)
if (!m_tabBarShown)
tabBar()->hide();
else {
- m_closeButton = new QToolButton(this);
+ m_closeButton = new TQToolButton(this);
m_closeButton->setIconSet(SmallIcon("tab_remove"));
m_closeButton->adjustSize();
m_closeButton->hide();
@@ -49,8 +49,8 @@ DTabWidget::DTabWidget(QWidget *parent, const char *name)
setTabReorderingEnabled(true);
}
- connect(this, SIGNAL(currentChanged(QWidget*)), this, SLOT(setFocus(QWidget*)));
-// connect(this, SIGNAL(currentChanged(QWidget*)), this, SLOT(updateHistory(QWidget*)));
+ connect(this, TQT_SIGNAL(currentChanged(TQWidget*)), this, TQT_SLOT(setFocus(TQWidget*)));
+// connect(this, TQT_SIGNAL(currentChanged(TQWidget*)), this, TQT_SLOT(updateHistory(TQWidget*)));
}
void DTabWidget::loadSettings()
@@ -69,18 +69,18 @@ void DTabWidget::saveSettings()
{
}
-QToolButton *DTabWidget::closeButton() const
+TQToolButton *DTabWidget::closeButton() const
{
return m_closeButton;
}
-void DTabWidget::setFocus(QWidget *w)
+void DTabWidget::setFocus(TQWidget *w)
{
if (w)
w->setFocus();
}
-void DTabWidget::insertTab(QWidget *child, const QString &label, int index)
+void DTabWidget::insertTab(TQWidget *child, const TQString &label, int index)
{
if (m_closeButton && m_closeButtonShown)
m_closeButton->show();
@@ -88,8 +88,8 @@ void DTabWidget::insertTab(QWidget *child, const QString &label, int index)
if (index != -1) tabBar()->repaint();
}
-void DTabWidget::insertTab(QWidget *child, const QIconSet &iconset,
- const QString &label, int index)
+void DTabWidget::insertTab(TQWidget *child, const TQIconSet &iconset,
+ const TQString &label, int index)
{
if (m_closeButton && m_closeButtonShown)
m_closeButton->show();
@@ -97,7 +97,7 @@ void DTabWidget::insertTab(QWidget *child, const QIconSet &iconset,
if (index != -1) tabBar()->repaint();
}
-/*void DTabWidget::updateHistory(QWidget *w)
+/*void DTabWidget::updateHistory(TQWidget *w)
{
if (m_history.top() != w)
m_history.push(w);