summaryrefslogtreecommitdiffstats
path: root/kicker-applets/ktimemon
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:22:56 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:22:56 +0000
commit7346aee26bf190a7e70333c40fab4caca847cd27 (patch)
tree4b019b434f88dcc3eeaafe1d3f26240b4c4718e8 /kicker-applets/ktimemon
parent23a3d3aa5b44cbdf305495919866d9dbf4f6da54 (diff)
downloadtdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.tar.gz
tdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1157634 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kicker-applets/ktimemon')
-rw-r--r--kicker-applets/ktimemon/confdlg.cc96
-rw-r--r--kicker-applets/ktimemon/confdlg.h34
-rw-r--r--kicker-applets/ktimemon/sample.cc8
-rw-r--r--kicker-applets/ktimemon/sample.h4
-rw-r--r--kicker-applets/ktimemon/timemon.cc58
-rw-r--r--kicker-applets/ktimemon/timemon.h26
6 files changed, 113 insertions, 113 deletions
diff --git a/kicker-applets/ktimemon/confdlg.cc b/kicker-applets/ktimemon/confdlg.cc
index ff5ab9d..df3fffe 100644
--- a/kicker-applets/ktimemon/confdlg.cc
+++ b/kicker-applets/ktimemon/confdlg.cc
@@ -11,14 +11,14 @@
#include <config.h>
#include <stdio.h>
-#include <qgroupbox.h>
-#include <qlineedit.h>
-#include <qslider.h>
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qvgroupbox.h>
-#include <qcheckbox.h>
-#include <qcombobox.h>
+#include <tqgroupbox.h>
+#include <tqlineedit.h>
+#include <tqslider.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqvgroupbox.h>
+#include <tqcheckbox.h>
+#include <tqcombobox.h>
#include <kcolorbutton.h>
#include <klineedit.h>
@@ -36,11 +36,11 @@ KConfDialog::KConfDialog(KTimeMon *t)
Ok|Cancel|Apply, Ok, t, 0, false ),
timemon(t)
{
- QFrame *page;
- QBoxLayout *bl;
- QGridLayout *gl;
- QLabel *l;
- QGroupBox *b;
+ TQFrame *page;
+ TQBoxLayout *bl;
+ TQGridLayout *gl;
+ TQLabel *l;
+ TQGroupBox *b;
KColorButton *cb;
unsigned i, j;
@@ -49,9 +49,9 @@ KConfDialog::KConfDialog(KTimeMon *t)
// first tab: general
page = addPage( i18n( "&General" ) );
- bl = new QVBoxLayout(page, 0, spacingHint());
+ bl = new TQVBoxLayout(page, 0, spacingHint());
- b = new QVGroupBox(i18n("Sample &Rate"), page);
+ b = new TQVGroupBox(i18n("Sample &Rate"), page);
bl->addWidget(b);
intervalEdit = new KIntNumInput(250, b);
@@ -59,13 +59,13 @@ KConfDialog::KConfDialog(KTimeMon *t)
intervalEdit->setSuffix(i18n(" msec"));
// scaling group box
- b = new QVGroupBox(i18n("Scaling"), page);
+ b = new TQVGroupBox(i18n("Scaling"), page);
bl->addWidget(b);
bl->addStretch();
- autoScaleBox = new QCheckBox(i18n("&Automatic"), b);
- connect(autoScaleBox, SIGNAL(toggled(bool)), this, SLOT(toggle(bool)));
+ autoScaleBox = new TQCheckBox(i18n("&Automatic"), b);
+ connect(autoScaleBox, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(toggle(bool)));
pageScaleEdit = new KIntNumInput(intervalEdit, 1000, b);
pageScaleEdit->setRange(10, 10000, 10);
@@ -84,7 +84,7 @@ KConfDialog::KConfDialog(KTimeMon *t)
// second tab: colours
page = addPage( i18n( "C&olors" ) );
- gl = new QGridLayout(page, 12, 10, 0, spacingHint());
+ gl = new TQGridLayout(page, 12, 10, 0, spacingHint());
gl->setColStretch(3, 1); gl->setColStretch(6, 1); // eat up horizontal space
gl->setRowStretch(11, 1); // eat up vertical space
@@ -94,85 +94,85 @@ KConfDialog::KConfDialog(KTimeMon *t)
gl->addColSpacing(0, 10); gl->addColSpacing(9, 25);
- QString cpuColourLabels[4];
+ TQString cpuColourLabels[4];
cpuColourLabels[0] = i18n("Kernel:");
cpuColourLabels[1] = i18n("User:");
cpuColourLabels[2] = i18n("Nice:");
cpuColourLabels[3] = i18n("IOWait:");
- QString memColourLabels[4];
+ TQString memColourLabels[4];
memColourLabels[0] = i18n("Kernel:");
memColourLabels[1] = i18n("Used:");
memColourLabels[2] = i18n("Buffers:");
memColourLabels[3] = i18n("Cached:");
KColorButton **cpuColourButtons[4] = { &kernelCB, &userCB, &niceCB, &iowaitCB };
- b = new QGroupBox(i18n("CPU"), page);
+ b = new TQGroupBox(i18n("CPU"), page);
gl->addMultiCellWidget(b, 0, 2, 0, 13);
for (j = 0; j < 4; j++) {
- l = new QLabel(cpuColourLabels[j], page);
+ l = new TQLabel(cpuColourLabels[j], page);
gl->addWidget(l, 1, 3*j+1, AlignVCenter | AlignRight);
cb = *cpuColourButtons[j] = new KColorButton(white, page);
gl->addWidget(cb, 1, 3*j+2, AlignCenter);
- connect(cb, SIGNAL(changed(const QColor &)),
- this, SLOT(updateSampleWidget(const QColor &)));
+ connect(cb, TQT_SIGNAL(changed(const TQColor &)),
+ this, TQT_SLOT(updateSampleWidget(const TQColor &)));
}
KColorButton **memColourButtons[4] = { &mkernelCB, &usedCB, &buffersCB, &cachedCB };
- b = new QGroupBox(i18n("Memory"), page);
+ b = new TQGroupBox(i18n("Memory"), page);
gl->addMultiCellWidget(b, 4, 6, 0, 13);
for (j = 0; j < 4; j++) {
- l = new QLabel(memColourLabels[j], page);
+ l = new TQLabel(memColourLabels[j], page);
gl->addWidget(l, 5, 3*j+1, AlignVCenter | AlignRight);
cb = *memColourButtons[j] = new KColorButton(white, page);
gl->addWidget(cb, 5, 3*j+2, AlignCenter);
- connect(cb, SIGNAL(changed(const QColor &)),
- this, SLOT(updateSampleWidget(const QColor &)));
+ connect(cb, TQT_SIGNAL(changed(const TQColor &)),
+ this, TQT_SLOT(updateSampleWidget(const TQColor &)));
}
- b = new QGroupBox(i18n("Swap"), page);
+ b = new TQGroupBox(i18n("Swap"), page);
gl->addMultiCellWidget(b, 8, 10, 0, 6);
- l = new QLabel(i18n("Swap:"), page);
+ l = new TQLabel(i18n("Swap:"), page);
gl->addWidget(l, 9, 1, AlignVCenter | AlignRight);
cb = swapCB = new KColorButton(red, page);
gl->addWidget(cb, 9, 2);
- connect(cb, SIGNAL(changed(const QColor &)),
- this, SLOT(updateSampleWidget(const QColor &)));
+ connect(cb, TQT_SIGNAL(changed(const TQColor &)),
+ this, TQT_SLOT(updateSampleWidget(const TQColor &)));
- l = new QLabel(i18n("Backgd:"), page);
+ l = new TQLabel(i18n("Backgd:"), page);
gl->addWidget(l, 9, 4, AlignVCenter | AlignRight);
cb = bgCB = new KColorButton(blue, page);
gl->addWidget(cb, 9, 5);
- connect(cb, SIGNAL(changed(const QColor &)),
- this, SLOT(updateSampleWidget(const QColor &)));
+ connect(cb, TQT_SIGNAL(changed(const TQColor &)),
+ this, TQT_SLOT(updateSampleWidget(const TQColor &)));
- //b = new QGroupBox(i18n("Sample"), page);
+ //b = new TQGroupBox(i18n("Sample"), page);
//gl->addMultiCellWidget(b, 8, 10, 7, 9);
// third tab: interaction
page = addPage( i18n( "&Interaction" ) );
- bl = new QVBoxLayout(page, 0, spacingHint());
+ bl = new TQVBoxLayout(page, 0, spacingHint());
- b = new QGroupBox(i18n("Mouse Events"), page);
+ b = new TQGroupBox(i18n("Mouse Events"), page);
b->setColumnLayout( 0, Qt::Vertical );
bl->addWidget(b);
bl->addStretch();
- QVBoxLayout *vbox = new QVBoxLayout( b->layout() );
+ TQVBoxLayout *vbox = new TQVBoxLayout( b->layout() );
- gl = new QGridLayout(b, MAX_MOUSE_ACTIONS + 1, 3, 0, 6 );
+ gl = new TQGridLayout(b, MAX_MOUSE_ACTIONS + 1, 3, 0, 6 );
vbox->addLayout( gl );
@@ -180,13 +180,13 @@ KConfDialog::KConfDialog(KTimeMon *t)
gl->setRowStretch(i, 1);
gl->setColStretch(2, 1);
- QString buttonText[MAX_MOUSE_ACTIONS] = { i18n("Left button:"),
+ TQString buttonText[MAX_MOUSE_ACTIONS] = { i18n("Left button:"),
i18n("Middle button:"),
i18n("Right button:") };
for (i = 0; i < (int) MAX_MOUSE_ACTIONS; i++) {
- l = new QLabel(buttonText[i], b);
+ l = new TQLabel(buttonText[i], b);
gl->addWidget(l, i+1, 0);
mouseC[i] = new KComboBox(false, b);
@@ -197,8 +197,8 @@ KConfDialog::KConfDialog(KTimeMon *t)
mouseC[i]->insertItem(i18n("Starts"), KTimeMon::COMMAND - 1);
gl->addWidget(mouseC[i], i+1, 1);
- connect( mouseC[ i ], SIGNAL( activated( int ) ), this,
- SLOT( mouseCommandEnable() ) );
+ connect( mouseC[ i ], TQT_SIGNAL( activated( int ) ), this,
+ TQT_SLOT( mouseCommandEnable() ) );
mouseLE[i] = new KURLRequester(b);
mouseLE[i]->lineEdit()->setText(t->mouseActionCommand[i]);
@@ -209,12 +209,12 @@ KConfDialog::KConfDialog(KTimeMon *t)
resize(380, 300);
- connect(this, SIGNAL(applyClicked()), timemon, SLOT(apply()));
- connect(this, SIGNAL(okClicked()), timemon, SLOT(apply()));
+ connect(this, TQT_SIGNAL(applyClicked()), timemon, TQT_SLOT(apply()));
+ connect(this, TQT_SIGNAL(okClicked()), timemon, TQT_SLOT(apply()));
}
// Adjust the colours of the sample widget in the configuration dialog.
-void KConfDialog::updateSampleWidget(const QColor &)
+void KConfDialog::updateSampleWidget(const TQColor &)
{
#if 0
sample->kernelColour = kernelCB->color();
diff --git a/kicker-applets/ktimemon/confdlg.h b/kicker-applets/ktimemon/confdlg.h
index d458bf2..25d0501 100644
--- a/kicker-applets/ktimemon/confdlg.h
+++ b/kicker-applets/ktimemon/confdlg.h
@@ -18,9 +18,9 @@
#ifndef CONFDLG_H
#define CONFDLG_H
-#include <qcolor.h>
-#include <qcheckbox.h>
-#include <qtabdialog.h>
+#include <tqcolor.h>
+#include <tqcheckbox.h>
+#include <tqtabdialog.h>
#include <kcolorbutton.h>
#include <kcombobox.h>
@@ -56,16 +56,16 @@ public:
void update(); // get values from timemon
unsigned getInterval() const { return intervalEdit->value(); }
- QColor getKernelColour() const { return kernelCB->color(); }
- QColor getUserColour() const { return userCB->color(); }
- QColor getNiceColour() const { return niceCB->color(); }
- QColor getIOWaitColour() const { return iowaitCB->color(); }
- QColor getCachedColour() const { return cachedCB->color(); }
- QColor getUsedColour() const { return usedCB->color(); }
- QColor getBuffersColour() const { return buffersCB->color(); }
- QColor getMKernelColour() const { return mkernelCB->color(); }
- QColor getSwapColour() const { return swapCB->color(); }
- QColor getBgColour() const { return bgCB->color(); }
+ TQColor getKernelColour() const { return kernelCB->color(); }
+ TQColor getUserColour() const { return userCB->color(); }
+ TQColor getNiceColour() const { return niceCB->color(); }
+ TQColor getIOWaitColour() const { return iowaitCB->color(); }
+ TQColor getCachedColour() const { return cachedCB->color(); }
+ TQColor getUsedColour() const { return usedCB->color(); }
+ TQColor getBuffersColour() const { return buffersCB->color(); }
+ TQColor getMKernelColour() const { return mkernelCB->color(); }
+ TQColor getSwapColour() const { return swapCB->color(); }
+ TQColor getBgColour() const { return bgCB->color(); }
bool getAutoScale() const { return autoScaleBox->isChecked(); }
unsigned getPageScale() const { return pageScaleEdit->value(); }
@@ -73,10 +73,10 @@ public:
unsigned getCtxScale() const { return ctxScaleEdit->value(); }
unsigned getMouseAction(int i) const;
- QString getMouseActionCommand(int i) const { return mouseLE[i]->lineEdit()->text(); }
+ TQString getMouseActionCommand(int i) const { return mouseLE[i]->lineEdit()->text(); }
private slots:
- void updateSampleWidget(const QColor &); // update colours in configuration
+ void updateSampleWidget(const TQColor &); // update colours in configuration
void toggle(bool state); // enable/disable scales
void mouseCommandEnable();
@@ -84,8 +84,8 @@ private:
KTimeMon *timemon;
KIntNumInput *intervalEdit, *swapScaleEdit, *pageScaleEdit, *ctxScaleEdit;
- QLineEdit *procFileEdit;
- QCheckBox *autoScaleBox;
+ TQLineEdit *procFileEdit;
+ TQCheckBox *autoScaleBox;
KColorButton *kernelCB, *userCB, *niceCB, *iowaitCB;
KColorButton *buffersCB, *usedCB, *cachedCB, *mkernelCB;
KColorButton *swapCB, *bgCB;
diff --git a/kicker-applets/ktimemon/sample.cc b/kicker-applets/ktimemon/sample.cc
index 25f25a3..99ea20b 100644
--- a/kicker-applets/ktimemon/sample.cc
+++ b/kicker-applets/ktimemon/sample.cc
@@ -33,7 +33,7 @@
#include <sys/swap.h>
#endif
-#include <qwidget.h>
+#include <tqwidget.h>
#include <klocale.h>
#include <kmessagebox.h>
@@ -162,7 +162,7 @@ void KSample::setScaling(bool a, unsigned p, unsigned s, unsigned c)
// -----------------------------------------------------------------------------
// Show a message box with the given message and terminate the application.
-void KSample::fatal(const QString& msg)
+void KSample::fatal(const TQString& msg)
{
timemon->stop();
@@ -174,7 +174,7 @@ void KSample::fatal(const QString& msg)
// -----------------------------------------------------------------------------
// Show a message box with the given message and don't terminate the app ;-)
-void KSample::nonfatal(const QString& msg)
+void KSample::nonfatal(const TQString& msg)
{
timemon->stop();
@@ -263,7 +263,7 @@ void KSample::readSample()
#elif defined(__osf__) // in OSF/2, we can use table()
- QString msg = i18n("Unable to obtain system information.\n"
+ TQString msg = i18n("Unable to obtain system information.\n"
"The table(2) system call returned an error "
"for table %1.\n"
"Please contact the maintainer at [email protected] "
diff --git a/kicker-applets/ktimemon/sample.h b/kicker-applets/ktimemon/sample.h
index b4a0723..63974fc 100644
--- a/kicker-applets/ktimemon/sample.h
+++ b/kicker-applets/ktimemon/sample.h
@@ -72,8 +72,8 @@ private:
// converts pages to MB
void makeMBytes(unsigned long &pages);
- void fatal(const QString& msg);
- void nonfatal(const QString& msg);
+ void fatal(const TQString& msg);
+ void nonfatal(const TQString& msg);
KTimeMon *timemon;
#ifdef __linux__
diff --git a/kicker-applets/ktimemon/timemon.cc b/kicker-applets/ktimemon/timemon.cc
index 84b0e79..75164f4 100644
--- a/kicker-applets/ktimemon/timemon.cc
+++ b/kicker-applets/ktimemon/timemon.cc
@@ -13,9 +13,9 @@
#include <config.h>
-#include <qpainter.h>
-#include <qtimer.h>
-#include <qtooltip.h>
+#include <tqpainter.h>
+#include <tqtimer.h>
+#include <tqtooltip.h>
#include <kconfig.h>
#include <kglobal.h>
@@ -35,7 +35,7 @@
extern "C"
{
- KDE_EXPORT KPanelApplet* init(QWidget *parent, const QString& configFile)
+ KDE_EXPORT KPanelApplet* init(TQWidget *parent, const TQString& configFile)
{
KGlobal::locale()->insertCatalogue("ktimemon");
KTimeMon *mon = new KTimeMon(configFile, KPanelApplet::Normal,
@@ -85,7 +85,7 @@ void KTimeMon::preferences()
// Repaint the object; get the current sample and paint the bar graphs
// correspondingly. Use a pixmap to minimise flicker.
-void KTimeMon::paintEvent(QPaintEvent *)
+void KTimeMon::paintEvent(TQPaintEvent *)
{
int w, h, x, y, b, r;
@@ -103,10 +103,10 @@ void KTimeMon::paintEvent(QPaintEvent *)
else
s.fill(h);
- QPixmap pixmap(width(), height());
+ TQPixmap pixmap(width(), height());
pixmap.fill(this, 0, 0);
- QPainter painter(&pixmap);
+ TQPainter painter(&pixmap);
b = r / 3; // bar width
r -= b;
@@ -152,7 +152,7 @@ void KTimeMon::paintEvent(QPaintEvent *)
// -----------------------------------------------------------------------------
// Draw part of a bar, depending on the bar orientation.
-void KTimeMon::paintRect(int x, int y, int w, int h, QColor c, QPainter *p)
+void KTimeMon::paintRect(int x, int y, int w, int h, TQColor c, TQPainter *p)
{
if (vertical)
p->fillRect(x, y, w, h, c);
@@ -161,7 +161,7 @@ void KTimeMon::paintRect(int x, int y, int w, int h, QColor c, QPainter *p)
}
// Show a tool-tip with some status information.
-void KTimeMon::maybeTip(const QPoint& p)
+void KTimeMon::maybeTip(const TQPoint& p)
{
if (sample == 0) return; // no associated sample...
if(!rect().contains(p)) return;
@@ -170,7 +170,7 @@ void KTimeMon::maybeTip(const QPoint& p)
int idle = 100 - s.kernel - s.user - s.nice;
if ( idle < 0 )
idle = 0;
- QString str = i18n("cpu: %1% idle\nmem: %2 MB %3% free\nswap: %4 MB %5% free")
+ TQString str = i18n("cpu: %1% idle\nmem: %2 MB %3% free\nswap: %4 MB %5% free")
.arg(idle)
.arg(KGlobal::locale()->formatNumber(s.used/100.*s.mtotal, 0))
.arg(100-s.used)
@@ -184,9 +184,9 @@ void KTimeMon::maybeTip(const QPoint& p)
// Initialise the member variables, read the configuration data base,
// set up the widget, and start the timer.
-KTimeMon::KTimeMon(const QString& configFile, Type type, int actions,
- QWidget *parent, const char *name)
- : KPanelApplet(configFile, type, actions, parent, name, WRepaintNoErase), QToolTip(this),
+KTimeMon::KTimeMon(const TQString& configFile, Type type, int actions,
+ TQWidget *parent, const char *name)
+ : KPanelApplet(configFile, type, actions, parent, name, WRepaintNoErase), TQToolTip(this),
configDialog(0), bgProcess(0),
kernelColour("red1"), userColour("blue"),
niceColour("yellow"), iowaitColour("darkgreen"),
@@ -207,12 +207,12 @@ KTimeMon::KTimeMon(const QString& configFile, Type type, int actions,
swapScale = conf->readUnsignedNumEntry("SwapScale", 5);
ctxScale = conf->readUnsignedNumEntry("ContextScale", 300);
for (int i = 0; i < MAX_MOUSE_ACTIONS; i++) {
- QString n;
+ TQString n;
n.setNum(i);
mouseAction[i] = (MouseAction)
- conf->readUnsignedNumEntry(QString("MouseAction")+n, mouseAction[i]);
- mouseActionCommand[i] = conf->readPathEntry(QString("MouseActionCommand")+n);
+ conf->readUnsignedNumEntry(TQString("MouseAction")+n, mouseAction[i]);
+ mouseActionCommand[i] = conf->readPathEntry(TQString("MouseActionCommand")+n);
}
conf->setGroup("Interface");
@@ -229,13 +229,13 @@ KTimeMon::KTimeMon(const QString& configFile, Type type, int actions,
vertical = conf->readBoolEntry("Vertical", true);
- timer = new QTimer(this);
- connect(timer, SIGNAL(timeout()), this, SLOT(timeout()));
+ timer = new TQTimer(this);
+ connect(timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(timeout()));
timer->start(interval);
sample = new KSample(this, autoScale, pageScale, swapScale, ctxScale);
- QString aboutmsg = i18n("KTimeMon for KDE\n"
+ TQString aboutmsg = i18n("KTimeMon for KDE\n"
"Maintained by Dirk A. Mueller <[email protected]>\n"
"Written by M. Maierhofer ([email protected])\n"
"Based on timemon by H. Maierhofer");
@@ -249,8 +249,8 @@ KTimeMon::KTimeMon(const QString& configFile, Type type, int actions,
menu->insertSeparator();
menu->insertItem(SmallIcon( "help" ), i18n("Help"), hmenu->menu(), 1);
- menu->connectItem(2, this, SLOT(configure()));
- menu->connectItem(4, this, SLOT(orientation()));
+ menu->connectItem(2, this, TQT_SLOT(configure()));
+ menu->connectItem(4, this, TQT_SLOT(orientation()));
menu->setCheckable(true);
@@ -328,11 +328,11 @@ void KTimeMon::writeConfiguration()
conf->writeEntry("ContextScale", ctxScale);
conf->writeEntry("WidgetSize", size());
for (int i = 0; i < MAX_MOUSE_ACTIONS; i++) {
- QString n;
+ TQString n;
n.setNum(i);
- conf->writeEntry(QString("MouseAction")+n, (unsigned)mouseAction[i]);
- conf->writePathEntry(QString("MouseActionCommand")+n, mouseActionCommand[i]);
+ conf->writeEntry(TQString("MouseAction")+n, (unsigned)mouseAction[i]);
+ conf->writePathEntry(TQString("MouseActionCommand")+n, mouseActionCommand[i]);
}
conf->sync();
}
@@ -380,7 +380,7 @@ void KTimeMon::orientation()
}
// Pop up the menu when the appropriate button has been pressed.
-void KTimeMon::mousePressEvent(QMouseEvent *event)
+void KTimeMon::mousePressEvent(TQMouseEvent *event)
{
if (event == 0) return;
@@ -413,8 +413,8 @@ void KTimeMon::runCommand(int index)
bgProcess = new KShellProcess;
*bgProcess << mouseActionCommand[index];
- connect(bgProcess, SIGNAL(receivedStderr(KProcess *, char *, int)),
- this, SLOT(commandStderr(KProcess *, char *, int)));
+ connect(bgProcess, TQT_SIGNAL(receivedStderr(KProcess *, char *, int)),
+ this, TQT_SLOT(commandStderr(KProcess *, char *, int)));
bgProcess->start(KProcess::DontCare, KProcess::Stderr);
}
@@ -423,10 +423,10 @@ void KTimeMon::runCommand(int index)
void KTimeMon::commandStderr(KProcess * /*proc*/, char *buffer, int /*length*/)
{
- QString msgbuf;
+ TQString msgbuf;
msgbuf = i18n("Got diagnostic output from child command:\n\n");
- msgbuf += QString::fromLocal8Bit(buffer);
+ msgbuf += TQString::fromLocal8Bit(buffer);
KMessageBox::information(this, msgbuf);
}
diff --git a/kicker-applets/ktimemon/timemon.h b/kicker-applets/ktimemon/timemon.h
index 8f5664c..cf39a35 100644
--- a/kicker-applets/ktimemon/timemon.h
+++ b/kicker-applets/ktimemon/timemon.h
@@ -15,7 +15,7 @@
#ifndef TIMEMON_H
#define TIMEMON_H
-#include <qtooltip.h>
+#include <tqtooltip.h>
#include <kiconloader.h>
#include <kpanelapplet.h>
@@ -44,13 +44,13 @@ class KPopupMenu;
* case it hides itself).
*/
-class KTimeMon : public KPanelApplet, QToolTip {
+class KTimeMon : public KPanelApplet, TQToolTip {
Q_OBJECT
public:
enum MouseAction { NOTHING, SWITCH, MENU, COMMAND };
- KTimeMon(const QString& configFile, Type t = Normal, int actions = 0,
- QWidget *parent = 0, const char *name = 0);
+ KTimeMon(const TQString& configFile, Type t = Normal, int actions = 0,
+ TQWidget *parent = 0, const char *name = 0);
virtual ~KTimeMon();
void writeConfiguration(); // write back the configuration data
@@ -70,10 +70,10 @@ public slots:
void apply(); // apply configuration information
protected:
- virtual void maybeTip(const QPoint&);
- virtual void mousePressEvent(QMouseEvent *event);
+ virtual void maybeTip(const TQPoint&);
+ virtual void mousePressEvent(TQMouseEvent *event);
virtual void updateConfig(KConfDialog *d);
- virtual void paintEvent(QPaintEvent *event);
+ virtual void paintEvent(TQPaintEvent *event);
private slots: // called from the menu
void configure(); // show the configuration dialog
@@ -82,23 +82,23 @@ private slots: // called from the menu
private:
void runCommand(int index);
- void paintRect(int x, int y, int w, int h, QColor c, QPainter *p);
+ void paintRect(int x, int y, int w, int h, TQColor c, TQPainter *p);
unsigned interval;
bool autoScale;
unsigned pageScale, swapScale, ctxScale;
KPopupMenu* menu;
KHelpMenu* hmenu;
- QTimer* timer;
+ TQTimer* timer;
KConfDialog *configDialog;
MouseAction mouseAction[MAX_MOUSE_ACTIONS];
- QString mouseActionCommand[MAX_MOUSE_ACTIONS];
+ TQString mouseActionCommand[MAX_MOUSE_ACTIONS];
KShellProcess *bgProcess;
KSample *sample;
- QColor kernelColour, userColour, niceColour, iowaitColour;
- QColor usedColour, buffersColour, cachedColour, mkernelColour;
- QColor swapColour, bgColour;
+ TQColor kernelColour, userColour, niceColour, iowaitColour;
+ TQColor usedColour, buffersColour, cachedColour, mkernelColour;
+ TQColor swapColour, bgColour;
bool vertical, tooltip;
friend class KConfDialog;