summaryrefslogtreecommitdiffstats
path: root/klinkstatus/src/ui/tabwidgetsession.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'klinkstatus/src/ui/tabwidgetsession.cpp')
-rw-r--r--klinkstatus/src/ui/tabwidgetsession.cpp54
1 files changed, 27 insertions, 27 deletions
diff --git a/klinkstatus/src/ui/tabwidgetsession.cpp b/klinkstatus/src/ui/tabwidgetsession.cpp
index 9d9033a7..d692486a 100644
--- a/klinkstatus/src/ui/tabwidgetsession.cpp
+++ b/klinkstatus/src/ui/tabwidgetsession.cpp
@@ -24,13 +24,13 @@
#include "../engine/searchmanager.h"
#include "../actionmanager.h"
-#include <qtoolbutton.h>
-#include <qcursor.h>
-#include <qtooltip.h>
-#include <qpushbutton.h>
-#include <qpixmap.h>
-#include <qiconset.h>
-#include <qstringlist.h>
+#include <tqtoolbutton.h>
+#include <tqcursor.h>
+#include <tqtooltip.h>
+#include <tqpushbutton.h>
+#include <tqpixmap.h>
+#include <tqiconset.h>
+#include <tqstringlist.h>
#include <kapplication.h>
#include <kstandarddirs.h>
@@ -42,10 +42,10 @@
#include <kiconloader.h>
-TabWidgetSession::TabWidgetSession(QWidget* parent, const char* name, WFlags f)
+TabWidgetSession::TabWidgetSession(TQWidget* parent, const char* name, WFlags f)
: KTabWidget(parent, name, f) // tabs_ is initialized with size 17
{
- setFocusPolicy(QTabWidget::NoFocus);
+ setFocusPolicy(TQTabWidget::NoFocus);
setMargin(0);
setTabReorderingEnabled(true);
setHoverCloseButton(true);
@@ -53,23 +53,23 @@ TabWidgetSession::TabWidgetSession(QWidget* parent, const char* name, WFlags f)
tabs_.setAutoDelete(false);
- QToolButton* tabs_new = new QToolButton(this);
- tabs_new->setAccel(QKeySequence("Ctrl+N"));
- connect(tabs_new, SIGNAL(clicked()), this, SLOT(slotNewSession()));
+ TQToolButton* tabs_new = new TQToolButton(this);
+ tabs_new->setAccel(TQKeySequence("Ctrl+N"));
+ connect(tabs_new, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotNewSession()));
tabs_new->setIconSet(SmallIconSet("tab_new_raised"));
tabs_new->adjustSize();
- QToolTip::add(tabs_new, i18n("Open new tab"));
+ TQToolTip::add(tabs_new, i18n("Open new tab"));
setCornerWidget(tabs_new, TopLeft);
- tabs_close_ = new QToolButton(this);
- tabs_close_->setAccel(QKeySequence("Ctrl+W"));
- connect(tabs_close_, SIGNAL(clicked()), this, SLOT(closeSession()));
+ tabs_close_ = new TQToolButton(this);
+ tabs_close_->setAccel(TQKeySequence("Ctrl+W"));
+ connect(tabs_close_, TQT_SIGNAL(clicked()), this, TQT_SLOT(closeSession()));
tabs_close_->setIconSet(SmallIconSet("tab_remove"));
tabs_close_->adjustSize();
- QToolTip::add(tabs_close_, i18n("Close the current tab"));
+ TQToolTip::add(tabs_close_, i18n("Close the current tab"));
setCornerWidget(tabs_close_, TopRight);
- connect(this, SIGNAL(currentChanged(QWidget*)), this, SLOT(slotCurrentChanged(QWidget*)));
+ connect(this, TQT_SIGNAL(currentChanged(TQWidget*)), this, TQT_SLOT(slotCurrentChanged(TQWidget*)));
}
TabWidgetSession::~TabWidgetSession()
@@ -108,7 +108,7 @@ SessionWidget* TabWidgetSession::getEmptySession() const
}
// Remember to use count() and not size()
-QIntDict<SessionWidget> const& TabWidgetSession::sessions() const
+TQIntDict<SessionWidget> const& TabWidgetSession::sessions() const
{
return tabs_;
}
@@ -117,10 +117,10 @@ SessionWidget* TabWidgetSession::newSession()
{
// TODO: settings: number of connections, timeout
SessionWidget* session_widget = newSessionWidget();
- connect(session_widget, SIGNAL(signalUpdateTabLabel(const LinkStatus *, SessionWidget*)),
- this, SLOT(updateTabLabel(const LinkStatus *, SessionWidget*)));
+ connect(session_widget, TQT_SIGNAL(signalUpdateTabLabel(const LinkStatus *, SessionWidget*)),
+ this, TQT_SLOT(updateTabLabel(const LinkStatus *, SessionWidget*)));
- insertTab(session_widget, i18n("Session") + i18n(QString::number(count() + 1).ascii()));
+ insertTab(session_widget, i18n("Session") + i18n(TQString::number(count() + 1).ascii()));
tabs_.insert(count() - 1, session_widget);
Q_ASSERT(tabs_[count() - 1]);
@@ -149,9 +149,9 @@ void TabWidgetSession::closeSession()
SessionWidget* TabWidgetSession::newSessionWidget()
{
SessionWidget* session_widget = new SessionWidget(KLSConfig::maxConnectionsNumber(),
- KLSConfig::timeOut(), this, QString("session_widget-" + count()));
+ KLSConfig::timeOut(), this, TQString("session_widget-" + count()));
- QStringList columns;
+ TQStringList columns;
columns.push_back(TreeView::URL_LABEL);
columns.push_back(TreeView::STATUS_LABEL);
@@ -168,7 +168,7 @@ SessionWidget* TabWidgetSession::newSessionWidget()
void TabWidgetSession::updateTabLabel(LinkStatus const* linkstatus, SessionWidget* page)
{
- QString label;
+ TQString label;
KURL url = linkstatus->absoluteUrl();
if(linkstatus->hasHtmlDocTitle())
@@ -187,7 +187,7 @@ void TabWidgetSession::updateTabLabel(LinkStatus const* linkstatus, SessionWidge
}
changeTab(page, KCharsets::resolveEntities(label));
- setTabIconSet(page, QIconSet(KMimeType::pixmapForURL(url)));
+ setTabIconSet(page, TQIconSet(KMimeType::pixmapForURL(url)));
}
void TabWidgetSession::slotLoadSettings()
@@ -210,7 +210,7 @@ void TabWidgetSession::setUrl(KURL const& url)
currentSession()->setUrl(url);
}
-void TabWidgetSession::slotCurrentChanged(QWidget* /*page*/)
+void TabWidgetSession::slotCurrentChanged(TQWidget* /*page*/)
{
tabs_close_->setEnabled(count() > 1);