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/knutmessagemanager.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/knutmessagemanager.cpp')
-rw-r--r-- | src/knutmessagemanager.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/knutmessagemanager.cpp b/src/knutmessagemanager.cpp index 4a5aa8a..6a39d03 100644 --- a/src/knutmessagemanager.cpp +++ b/src/knutmessagemanager.cpp @@ -16,9 +16,9 @@ ***************************************************************************/ #include "knutmessagemanager.h" -#include <qstring.h> +#include <tqstring.h> -KNutMessageManager::KNutMessageManager( QObject *parent, const char *name) : QObject (parent, name) { +KNutMessageManager::KNutMessageManager( TQObject *tqparent, const char *name) : TQObject (tqparent, name) { //qDebug("KNutMessageManager::KNutMessageManager"); @@ -39,16 +39,16 @@ KNutMessageManager::~KNutMessageManager(){ void KNutMessageManager::deleteMessage (void) { if (m_myMess) { - disconnect (m_myMess,SIGNAL(finished()),this,SLOT(slotFinishedMessage())); - disconnect (m_myMess,SIGNAL(endMessage()),this,SLOT(slotEndMessage())); - disconnect (m_myMess,SIGNAL(messageMoved(int,int)),this,SLOT(slotMessageMoved(int,int))); + disconnect (m_myMess,TQT_SIGNAL(finished()),this,TQT_SLOT(slotFinishedMessage())); + disconnect (m_myMess,TQT_SIGNAL(endMessage()),this,TQT_SLOT(slotEndMessage())); + disconnect (m_myMess,TQT_SIGNAL(messageMoved(int,int)),this,TQT_SLOT(slotMessageMoved(int,int))); m_myMess->hide(); delete m_myMess; m_myMess = 0; } } -void KNutMessageManager::addMessage (QString text, knc::LevelOfMessage messageLevel, bool useInfoIcon, bool useShortTimeOfValidity) { +void KNutMessageManager::addMessage (TQString text, knc::LevelOfMessage messageLevel, bool useInfoIcon, bool useShortTimeOfValidity) { long int timeOfMessageValidity; if (useShortTimeOfValidity) timeOfMessageValidity = ShortTimeOfValidity; @@ -82,18 +82,18 @@ long int timeOfMessageValidity; } m_myMess->show(); - connect (m_myMess,SIGNAL(finished()),this,SLOT(slotFinishedMessage())); - connect (m_myMess,SIGNAL(endMessage()),this,SLOT(slotEndMessage())); - connect (m_myMess,SIGNAL(messageMoved(int,int)),this,SLOT(slotMessageMoved(int,int))); + connect (m_myMess,TQT_SIGNAL(finished()),this,TQT_SLOT(slotFinishedMessage())); + connect (m_myMess,TQT_SIGNAL(endMessage()),this,TQT_SLOT(slotEndMessage())); + connect (m_myMess,TQT_SIGNAL(messageMoved(int,int)),this,TQT_SLOT(slotMessageMoved(int,int))); } void KNutMessageManager::slotFinishedMessage (void) { if (m_myMess) { - disconnect (m_myMess,SIGNAL(finished()),this,SLOT(slotFinishedMessage())); - disconnect (m_myMess,SIGNAL(endMessage()),this,SLOT(slotEndMessage())); - disconnect (m_myMess,SIGNAL(messageMoved(int,int)),this,SLOT(slotMessageMoved(int,int))); + disconnect (m_myMess,TQT_SIGNAL(finished()),this,TQT_SLOT(slotFinishedMessage())); + disconnect (m_myMess,TQT_SIGNAL(endMessage()),this,TQT_SLOT(slotEndMessage())); + disconnect (m_myMess,TQT_SIGNAL(messageMoved(int,int)),this,TQT_SLOT(slotMessageMoved(int,int))); m_myMess->hide(); m_myMess->deleteLater(); m_myMess=0; |