summaryrefslogtreecommitdiffstats
path: root/lib/widgets/kdevtabwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/widgets/kdevtabwidget.cpp')
-rw-r--r--lib/widgets/kdevtabwidget.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/lib/widgets/kdevtabwidget.cpp b/lib/widgets/kdevtabwidget.cpp
index 49925115..a7d12348 100644
--- a/lib/widgets/kdevtabwidget.cpp
+++ b/lib/widgets/kdevtabwidget.cpp
@@ -9,7 +9,7 @@
* *
***************************************************************************/
-#include <qpopupmenu.h>
+#include <tqpopupmenu.h>
#include <kglobal.h>
#include <klocale.h>
@@ -18,24 +18,24 @@
#include "kdevtabwidget.h"
-KDevTabWidget::KDevTabWidget(QWidget *parent, const char *name) : QTabWidget(parent,name)
+KDevTabWidget::KDevTabWidget(TQWidget *parent, const char *name) : TQTabWidget(parent,name)
{
m_pTabBar = new KTabBar(this, "tabbar");
setTabBar(m_pTabBar);
- connect(m_pTabBar, SIGNAL(closeWindow(const QWidget*)), this, SIGNAL(closeWindow(const QWidget*)));
- connect(m_pTabBar, SIGNAL(closeOthers(QWidget*)), this, SIGNAL(closeOthers(QWidget*)));
+ connect(m_pTabBar, TQT_SIGNAL(closeWindow(const TQWidget*)), this, TQT_SIGNAL(closeWindow(const TQWidget*)));
+ connect(m_pTabBar, TQT_SIGNAL(closeOthers(TQWidget*)), this, TQT_SIGNAL(closeOthers(TQWidget*)));
}
-KTabBar::KTabBar(QWidget *parent, const char *name) : QTabBar(parent,name)
+KTabBar::KTabBar(TQWidget *parent, const char *name) : TQTabBar(parent,name)
{
- m_pPopupMenu = new QPopupMenu(this);
+ m_pPopupMenu = new TQPopupMenu(this);
- QPixmap closePixmap = KGlobal::instance()->iconLoader()->loadIcon( "tab_remove", KIcon::Small, 0, KIcon::DefaultState, 0, true );
+ TQPixmap closePixmap = KGlobal::instance()->iconLoader()->loadIcon( "tab_remove", KIcon::Small, 0, KIcon::DefaultState, 0, true );
if (closePixmap.isNull())
closePixmap = SmallIcon("fileclose");
- m_pPopupMenu->insertItem(closePixmap, i18n("&Close"), this, SLOT(closeWindowSlot()));
- m_pPopupMenu->insertItem(i18n("Close &Others"), this, SLOT(closeOthersSlot()));
+ m_pPopupMenu->insertItem(closePixmap, i18n("&Close"), this, TQT_SLOT(closeWindowSlot()));
+ m_pPopupMenu->insertItem(i18n("Close &Others"), this, TQT_SLOT(closeOthersSlot()));
}
void KTabBar::closeWindowSlot()
@@ -48,11 +48,11 @@ void KTabBar::closeOthersSlot()
emit closeOthers(m_pPage);
}
-void KTabBar::mousePressEvent(QMouseEvent *e)
+void KTabBar::mousePressEvent(TQMouseEvent *e)
{
if(e->button() == Qt::RightButton) {
- QTab *tab = selectTab(e->pos() );
+ TQTab *tab = selectTab(e->pos() );
if( tab == 0L ) return;
m_pPage = ((KDevTabWidget*)parent())->page(indexOf(tab->identifier() ) );
@@ -60,7 +60,7 @@ void KTabBar::mousePressEvent(QMouseEvent *e)
m_pPopupMenu->exec(mapToGlobal(e->pos()));
}
- QTabBar::mousePressEvent(e);
+ TQTabBar::mousePressEvent(e);
}
#include "kdevtabwidget.moc"