diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-30 19:37:06 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-30 19:37:06 +0000 |
commit | 968af1d235ac30d737991b269156bee5dc99d318 (patch) | |
tree | 19b118fa5380087e10cb728be545760791ce0676 /src/knutmessage.cpp | |
parent | aea4882f3b37f17c5b56bc77667e683c52254c30 (diff) | |
download | knutclient-968af1d235ac30d737991b269156bee5dc99d318.tar.gz knutclient-968af1d235ac30d737991b269156bee5dc99d318.zip |
TQt4 port knutclient
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/knutclient@1238881 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/knutmessage.cpp')
-rw-r--r-- | src/knutmessage.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/knutmessage.cpp b/src/knutmessage.cpp index f13b9e7..b5d5e2a 100644 --- a/src/knutmessage.cpp +++ b/src/knutmessage.cpp @@ -19,14 +19,14 @@ #include <kglobal.h> #include <kiconloader.h> -#include <qlayout.h> -#include <qlabel.h> -#include <qframe.h> -#include <qpixmap.h> -#include <qtimer.h> +#include <tqlayout.h> +#include <tqlabel.h> +#include <tqframe.h> +#include <tqpixmap.h> +#include <tqtimer.h> -KNutMessage::KNutMessage(const QString messageText, const typeOfMessage type, const long int timeValidity, QWidget *parent, const char *name) : KDialogBase(Plain, "Messages",Ok,Ok, parent, name, false, false) { +KNutMessage::KNutMessage(const TQString messageText, const typeOfMessage type, const long int timeValidity, TQWidget *tqparent, const char *name) : KDialogBase(Plain, "Messages",Ok,Ok, tqparent, name, false, false) { setCaption("KNutClient"); @@ -45,25 +45,25 @@ KNutMessage::KNutMessage(const QString messageText, const typeOfMessage type, co break; } - QFrame *page = plainPage(); + TQFrame *page = plainPage(); - QVBoxLayout *setTopLayout = new QVBoxLayout( page, 10, spacingHint(), "setTopLayout" ); - QHBoxLayout *setMessageLayout = new QHBoxLayout( setTopLayout, spacingHint(), "setMessageLayout" ); + TQVBoxLayout *setTopLayout = new TQVBoxLayout( page, 10, spacingHint(), "setTopLayout" ); + TQHBoxLayout *setMessageLayout = new TQHBoxLayout( setTopLayout, spacingHint(), "setMessageLayout" ); - QLabel* picture = new QLabel (page); - QLabel* text = new QLabel (messageText,page); + TQLabel* picture = new TQLabel (page); + TQLabel* text = new TQLabel (messageText,page); picture->setPixmap(m_ret); setMessageLayout->addWidget(picture); setMessageLayout->addWidget(text); if (timeValidity > 0 ) { - m_messageTimer = new QTimer(this); + m_messageTimer = new TQTimer(this); if (timeValidity > maxTime) m_messageTimer->start(maxTime*1000); else m_messageTimer->start(timeValidity*1000); - connect (m_messageTimer,SIGNAL(timeout()),this,SLOT(timeout())); + connect (m_messageTimer,TQT_SIGNAL(timeout()),this,TQT_SLOT(timeout())); disableResize(); } } @@ -85,7 +85,7 @@ void KNutMessage::slotOk (void) { emit endMessage(); } -void KNutMessage::moveEvent ( QMoveEvent * e) { +void KNutMessage::moveEvent ( TQMoveEvent * e) { KDialogBase::moveEvent (e); emit messageMoved(x(),y()); |