summaryrefslogtreecommitdiffstats
path: root/konversation/src/queuetuner.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'konversation/src/queuetuner.cpp')
-rw-r--r--konversation/src/queuetuner.cpp48
1 files changed, 24 insertions, 24 deletions
diff --git a/konversation/src/queuetuner.cpp b/konversation/src/queuetuner.cpp
index 7686ae4..6f12646 100644
--- a/konversation/src/queuetuner.cpp
+++ b/konversation/src/queuetuner.cpp
@@ -18,10 +18,10 @@
#include "viewcontainer.h"
#include "konversationapplication.h"
-#include <qtoolbutton.h>
-#include <qspinbox.h>
-#include <qpopupmenu.h>
-#include <qevent.h>
+#include <tqtoolbutton.h>
+#include <tqspinbox.h>
+#include <tqpopupmenu.h>
+#include <tqevent.h>
#include <kdebug.h>
#include <kapplication.h>
@@ -31,26 +31,26 @@
#include <klocale.h>
-QueueTuner::QueueTuner(QWidget* parent, ViewContainer *container)
+QueueTuner::QueueTuner(TQWidget* parent, ViewContainer *container)
: QueueTunerBase(parent), m_server(0), m_timer(this, "qTuner"),
m_vis(Preferences::self()->showQueueTunerItem()->value())
{
m_closeButton->setIconSet(kapp->iconLoader()->loadIconSet("fileclose", KIcon::Toolbar, 16));
- connect(m_closeButton, SIGNAL(clicked()), SLOT(close()));
- connect(container, SIGNAL(frontServerChanging(Server*)), SLOT(setServer(Server*)));
- connect(&m_timer, SIGNAL(timeout()), SLOT(timerFired()));
+ connect(m_closeButton, TQT_SIGNAL(clicked()), TQT_SLOT(close()));
+ connect(container, TQT_SIGNAL(frontServerChanging(Server*)), TQT_SLOT(setServer(Server*)));
+ connect(&m_timer, TQT_SIGNAL(timeout()), TQT_SLOT(timerFired()));
- connect(m_slowRate, SIGNAL(valueChanged(int)), SLOT(slowRateChanged(int)));
- connect(m_slowType, SIGNAL(activated(int)), SLOT(slowTypeChanged(int)));
- connect(m_slowInterval, SIGNAL(valueChanged(int)), SLOT(slowIntervalChanged(int)));
+ connect(m_slowRate, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(slowRateChanged(int)));
+ connect(m_slowType, TQT_SIGNAL(activated(int)), TQT_SLOT(slowTypeChanged(int)));
+ connect(m_slowInterval, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(slowIntervalChanged(int)));
- connect(m_normalRate, SIGNAL(valueChanged(int)), SLOT(normalRateChanged(int)));
- connect(m_normalType, SIGNAL(activated(int)), SLOT(normalTypeChanged(int)));
- connect(m_normalInterval, SIGNAL(valueChanged(int)), SLOT(normalIntervalChanged(int)));
+ connect(m_normalRate, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(normalRateChanged(int)));
+ connect(m_normalType, TQT_SIGNAL(activated(int)), TQT_SLOT(normalTypeChanged(int)));
+ connect(m_normalInterval, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(normalIntervalChanged(int)));
- connect(m_fastRate, SIGNAL(valueChanged(int)), SLOT(fastRateChanged(int)));
- connect(m_fastType, SIGNAL(activated(int)), SLOT(fastTypeChanged(int)));
- connect(m_fastInterval, SIGNAL(valueChanged(int)), SLOT(fastIntervalChanged(int)));
+ connect(m_fastRate, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(fastRateChanged(int)));
+ connect(m_fastType, TQT_SIGNAL(activated(int)), TQT_SLOT(fastTypeChanged(int)));
+ connect(m_fastInterval, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(fastIntervalChanged(int)));
}
QueueTuner::~QueueTuner()
@@ -58,14 +58,14 @@ QueueTuner::~QueueTuner()
}
//lps, lpm, bps, kbps
-static void rateToWidget(IRCQueue::EmptyingRate& rate, QSpinBox *r, QComboBox* t, QSpinBox *i)
+static void rateToWidget(IRCQueue::EmptyingRate& rate, TQSpinBox *r, TQComboBox* t, TQSpinBox *i)
{
r->setValue(rate.m_rate);
t->setCurrentItem(rate.m_type);
i->setValue(rate.m_interval/1000);
}
-void QueueTuner::serverDestroyed(QObject* ref)
+void QueueTuner::serverDestroyed(TQObject* ref)
{
if (ref == m_server)
setServer(0);
@@ -96,7 +96,7 @@ void QueueTuner::setServer(Server* newServer)
if (m_server)
{
- connect(m_server, SIGNAL(destroyed(QObject*)), SLOT(serverDestroyed(QObject*)));
+ connect(m_server, TQT_SIGNAL(destroyed(TQObject*)), TQT_SLOT(serverDestroyed(TQObject*)));
getRates();
}
@@ -234,16 +234,16 @@ void QueueTuner::fastIntervalChanged(int v)
r=v*1000;
}
-void QueueTuner::contextMenuEvent(QContextMenuEvent* e)
+void QueueTuner::contextMenuEvent(TQContextMenuEvent* e)
{
- QPopupMenu p(this);
+ TQPopupMenu p(this);
p.insertItem("Reset...", 1);
int id = p.exec(e->globalPos());
if (id > 0)
{
- QString question(i18n("This cannot be undone, are you sure you wish to reset to default values?"));
- int x = KMessageBox::warningContinueCancel(this, question, i18n("Reset Values"), KStdGuiItem::reset(), QString::null, KMessageBox::Dangerous);
+ TQString question(i18n("This cannot be undone, are you sure you wish to reset to default values?"));
+ int x = KMessageBox::warningContinueCancel(this, question, i18n("Reset Values"), KStdGuiItem::reset(), TQString::null, KMessageBox::Dangerous);
if ( x == KMessageBox::Continue)
{
Server::_resetRates();