summaryrefslogtreecommitdiffstats
path: root/kbiff/notify.cpp
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2013-07-02 19:34:37 +0200
committerSlávek Banko <slavek.banko@axis.cz>2013-07-02 19:34:37 +0200
commit979e7a713aabb63ffbe53b6a42a90e87bf4d1969 (patch)
treed81fe703502efa28fdcb3a10a9310af33ddf581b /kbiff/notify.cpp
parent9be78eabfff24f317148c216f609e4d4778e3d58 (diff)
downloadkbiff-979e7a713aabb63ffbe53b6a42a90e87bf4d1969.tar.gz
kbiff-979e7a713aabb63ffbe53b6a42a90e87bf4d1969.zip
Initial TQt conversion
Diffstat (limited to 'kbiff/notify.cpp')
-rw-r--r--kbiff/notify.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/kbiff/notify.cpp b/kbiff/notify.cpp
index 2289372..0f1de07 100644
--- a/kbiff/notify.cpp
+++ b/kbiff/notify.cpp
@@ -8,10 +8,10 @@
#include "notify.h"
#include "notify.moc"
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qpixmap.h>
-#include <qpushbutton.h>
+#include <ntqlayout.h>
+#include <ntqlabel.h>
+#include <ntqpixmap.h>
+#include <ntqpushbutton.h>
#include <kapp.h>
#include <kglobal.h>
@@ -20,33 +20,33 @@
#include <kprocess.h>
#include <kwin.h>
-KBiffNotify::KBiffNotify(QWidget *parent_, const int num_new,
- const QString& mailbx)
- : QDialog(parent_, 0, false, 0)
+KBiffNotify::KBiffNotify(TQWidget *parent_, const int num_new,
+ const TQString& mailbx)
+ : TQDialog(parent_, 0, false, 0)
{
KWin::setIcons(winId(), kapp->icon(), kapp->miniIcon());
setCaption(i18n("You have new mail!"));
- QLabel *pixmap = new QLabel(this);
+ TQLabel *pixmap = new TQLabel(this);
pixmap->setPixmap(kapp->icon());
pixmap->setFixedSize(pixmap->sizeHint());
- QLabel *congrats = new QLabel(i18n("You have new mail!"), this);
- QFont the_font(congrats->font());
+ TQLabel *congrats = new TQLabel(i18n("You have new mail!"), this);
+ TQFont the_font(congrats->font());
the_font.setBold(true);
congrats->setFont(the_font);
- QString msg;
+ TQString msg;
msg = i18n("New Messages: %1").arg(num_new);
- msgLabel = new QLabel(msg, this);
+ msgLabel = new TQLabel(msg, this);
msg = i18n("Mailbox: %1").arg(mailbx);
- QLabel *which_one = new QLabel(msg, this);
+ TQLabel *which_one = new TQLabel(msg, this);
- QPushButton *ok = new QPushButton(i18n("OK"), this);
+ TQPushButton *ok = new TQPushButton(i18n("OK"), this);
ok->setDefault(true);
- QPushButton *launch = new QPushButton(i18n("Mailer"), this);
+ TQPushButton *launch = new TQPushButton(i18n("Mailer"), this);
// connect the signals to slots
connect(ok, SIGNAL(clicked()), SLOT(accept()));
@@ -54,22 +54,22 @@ KBiffNotify::KBiffNotify(QWidget *parent_, const int num_new,
connect(launch, SIGNAL(clicked()), this, SLOT(accept()));
// Now do the layout
- QVBoxLayout *info_layout = new QVBoxLayout(12);
+ TQVBoxLayout *info_layout = new TQVBoxLayout(12);
info_layout->addWidget(congrats);
info_layout->addWidget(msgLabel);
info_layout->addWidget(which_one);
- QHBoxLayout *upper_layout = new QHBoxLayout;
+ TQHBoxLayout *upper_layout = new TQHBoxLayout;
upper_layout->addWidget(pixmap);
upper_layout->addLayout(info_layout, 1);
- QHBoxLayout *button_layout = new QHBoxLayout;
+ TQHBoxLayout *button_layout = new TQHBoxLayout;
button_layout->addStretch(1);
button_layout->addWidget(launch);
button_layout->addWidget(ok);
button_layout->addStretch(1);
- QVBoxLayout *top_layout = new QVBoxLayout(this, 12);
+ TQVBoxLayout *top_layout = new TQVBoxLayout(this, 12);
top_layout->addLayout(upper_layout);
top_layout->addLayout(button_layout);
@@ -83,7 +83,7 @@ KBiffNotify::~KBiffNotify()
void KBiffNotify::setNew(const int num_new)
{
- QString msg;
+ TQString msg;
msg = i18n("New Messages: %1").arg(num_new);
msgLabel->setText(msg);
messages = num_new;