diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-28 18:31:12 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-28 18:31:12 +0000 |
commit | 0a80cfd57d271dd44221467efb426675fa470356 (patch) | |
tree | 6f503a31aa078eaf8fa015cf1749808529d49fc9 /src/kvirc/ui/kvi_window.cpp | |
parent | 3329e5a804e28ef3f5eb51d1e7affdd5a508e8f2 (diff) | |
download | kvirc-0a80cfd57d271dd44221467efb426675fa470356.tar.gz kvirc-0a80cfd57d271dd44221467efb426675fa470356.zip |
TQt4 port kvirc
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kvirc@1238719 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/kvirc/ui/kvi_window.cpp')
-rw-r--r-- | src/kvirc/ui/kvi_window.cpp | 469 |
1 files changed, 227 insertions, 242 deletions
diff --git a/src/kvirc/ui/kvi_window.cpp b/src/kvirc/ui/kvi_window.cpp index 2cf64085..763df175 100644 --- a/src/kvirc/ui/kvi_window.cpp +++ b/src/kvirc/ui/kvi_window.cpp @@ -53,29 +53,29 @@ #include "kvi_styled_controls.h" #include "kvi_kvs_script.h" -#include <qpixmap.h> +#include <tqpixmap.h> #include "kvi_tal_popupmenu.h" -#include <qcursor.h> -#include <qtimer.h> -#include <qsplitter.h> -#include <qmetaobject.h> -#include <qdatetime.h> -#include <qtextcodec.h> -#include <qevent.h> +#include <tqcursor.h> +#include <tqtimer.h> +#include <tqsplitter.h> +#include <tqmetaobject.h> +#include <tqdatetime.h> +#include <tqtextcodec.h> +#include <tqevent.h> // it looks they can't decide :D #ifdef COMPILE_USE_QT4 - #include <QPushButton> - #include <qdesktopwidget.h> + #include <TQPushButton> + #include <tqdesktopwidget.h> #else - #include <qobjectlist.h> + #include <tqobjectlist.h> #endif -#include <qvariant.h> -#include <qtoolbutton.h> +#include <tqvariant.h> +#include <tqtoolbutton.h> #include "kvi_tal_tooltip.h" -#include <qmessagebox.h> +#include <tqmessagebox.h> #ifdef COMPILE_CRYPT_SUPPORT #include "kvi_crypt.h" @@ -102,8 +102,8 @@ static KviTalPopupMenu * g_pMdiWindowSystemTextEncodingPopupSmartUtf8 = 0; unsigned long int g_uUniqueWindowId = 1; // FIXME: #warning "Mouse wheel support" -KviWindow::KviWindow(int type,KviFrame * lpFrm,const QString &name,KviConsole * lpConsole) - : QWidget(0) +KviWindow::KviWindow(int type,KviFrame * lpFrm,const TQString &name,KviConsole * lpConsole) + : TQWidget(0) { m_uId = g_uUniqueWindowId; g_uUniqueWindowId++; @@ -146,13 +146,13 @@ KviWindow::KviWindow(int type,KviFrame * lpFrm,const QString &name,KviConsole * setMinimumSize(KVI_WINDOW_MIN_WIDTH,KVI_WINDOW_MIN_HEIGHT); #ifdef COMPILE_USE_QT4 //setAutoFillBackground(false); - setFocusPolicy(Qt::StrongFocus); + setFocusPolicy(TTQ_StrongFocus); #else setBackgroundMode(NoBackground); - setFocusPolicy(StrongFocus); + setFocusPolicy(TQ_StrongFocus); #endif - connect(g_pApp,SIGNAL(reloadImages()),this,SLOT(reloadImages())); + connect(g_pApp,TQT_SIGNAL(reloadImages()),this,TQT_SLOT(reloadImages())); } KviWindow::~KviWindow() @@ -180,7 +180,7 @@ KviWindow::~KviWindow() #endif } -void KviWindow::setWindowName(const QString &szName) +void KviWindow::setWindowName(const TQString &szName) { m_szName = szName; emit windowNameChanged(); @@ -188,7 +188,7 @@ void KviWindow::setWindowName(const QString &szName) void KviWindow::toggleButtonContainer() { - QFrame *pContainer=buttonContainer(); + TQFrame *pContainer=buttonContainer(); if(pContainer) { pContainer->setHidden(!pContainer->isHidden()); @@ -198,7 +198,7 @@ void KviWindow::toggleButtonContainer() void KviWindow::setName(const char * name) { m_szName = name; - QWidget::setName(name); + TQWidget::setName(name); } KviIrcConnection * KviWindow::connection() @@ -213,22 +213,22 @@ void KviWindow::reloadImages() bool KviWindow::hasAttention() { - if(((QApplication *)g_pApp)->activeWindow() == 0)return false; // no application window has the focus atm + if(((TQApplication *)g_pApp)->activeWindow() == 0)return false; // no application window has the focus atm if(mdiParent()) { if(frame()->isActiveWindow())return true; // This frame is not the active window but the // active window still belongs to KVIrc. - // When the active window is derived from QDialog + // When the active window is derived from TQDialog // then it is probably a KVIrc's option dialog // or something similar. // In this case we assume that the user has the // KVIrc window just below and can see it. // Handle the special case of the dialogs then - QWidget * w = ((QApplication *)g_pApp)->activeWindow(); - if(w->inherits("QDialog")) + TQWidget * w = TQT_TQWIDGET(((TQApplication *)g_pApp)->activeWindow()); + if(w->inherits(TQDIALOG_OBJECT_NAME_STRING)) { // but make sure that the frame is visible at all! if(!frame()->isVisible())return false; @@ -285,43 +285,43 @@ void KviWindow::demandAttention() bool KviWindow::focusNextPrevChild(bool next) { - QWidget * w = focusWidget(); + TQWidget * w = tqfocusWidget(); if(w) { #ifdef COMPILE_USE_QT4 - if(w->focusPolicy() == Qt::StrongFocus)return false; + if(w->focusPolicy() == TTQ_StrongFocus)return false; #else - if(w->focusPolicy() == QWidget::StrongFocus)return false; + if(w->focusPolicy() == TQ_StrongFocus)return false; #endif - //QVariant v = w->property("KviProperty_FocusOwner"); + //TQVariant v = w->property("KviProperty_FocusOwner"); //if(v.isValid())return false; // Do NOT change the focus widget! - if(w->parent()) + if(w->tqparent()) { #ifdef COMPILE_USE_QT4 - if(w->parent()->metaObject()->indexOfProperty("KviProperty_ChildFocusOwner") == -1) + if(w->tqparent()->tqmetaObject()->indexOfProperty("KviProperty_ChildFocusOwner") == -1) #else - if(w->parent()->metaObject()->findProperty("KviProperty_ChildFocusOwner") == -1) + if(w->tqparent()->tqmetaObject()->tqfindProperty("KviProperty_ChildFocusOwner") == -1) #endif return false; // Do NOT change the focus widget! } } - return QWidget::focusNextPrevChild(next); + return TQWidget::focusNextPrevChild(next); } -void KviWindow::forceTextCodec(QTextCodec * c) +void KviWindow::forceTextCodec(TQTextCodec * c) { if(!c)return; m_pTextCodec = c; - QTextCodec * dc = defaultTextCodec(); + TQTextCodec * dc = defaultTextCodec(); if(dc != c) m_szTextEncoding = c->name(); else m_szTextEncoding = ""; // this is the default anyway } -bool KviWindow::setTextEncoding(const QString &szTextEncoding) +bool KviWindow::setTextEncoding(const TQString &szTextEncoding) { if(!szTextEncoding.isEmpty()) { @@ -340,24 +340,24 @@ bool KviWindow::setTextEncoding(const QString &szTextEncoding) return false; } -QTextCodec * KviWindow::defaultTextCodec() +TQTextCodec * KviWindow::defaultTextCodec() { // if we have a connection try to inherit from there... if(connection()) { - QTextCodec * c = connection()->textCodec(); + TQTextCodec * c = connection()->textCodec(); if(c)return c; } return KviApp::defaultTextCodec(); } -KviQCString KviWindow::encodeText(const QString &szText) +KviTQCString KviWindow::encodeText(const TQString &szText) { if(!m_pTextCodec)return defaultTextCodec()->fromUnicode(szText); return m_pTextCodec->fromUnicode(szText); } -QString KviWindow::decodeText(const char * szText) +TQString KviWindow::decodeText(const char * szText) { if(!m_pTextCodec)return defaultTextCodec()->toUnicode(szText); return m_pTextCodec->toUnicode(szText); @@ -427,20 +427,20 @@ void KviWindow::destroyTaskBarItem() // m_pTaskBarItem = 0; // actually the taskBarItem destructor sets it } -BUTTON_CLASS * KviWindow::createToolButton(QWidget * par,const char * nam,int pixon,int pixoff,const QString & tooltip,bool bOn) +BUTTON_CLASS * KviWindow::createToolButton(TQWidget * par,const char * nam,int pixon,int pixoff,const TQString & tooltip,bool bOn) { #ifdef COMPILE_USE_QT4 BUTTON_CLASS * b = new BUTTON_CLASS(par); b->setObjectName(nam); b->setFlat(true); - b->setIcon(QIcon(*(g_pIconManager->getSmallIcon(pixon)))); + b->setIcon(TQIcon(*(g_pIconManager->getSmallIcon(pixon)))); #else BUTTON_CLASS * b = new BUTTON_CLASS(par,nam); b->setToggleButton(true); b->setUsesBigPixmap(false); - QIconSet is1; - is1.setPixmap(*(g_pIconManager->getSmallIcon(pixon)),QIconSet::Small,QIconSet::Normal,QIconSet::On); - is1.setPixmap(*(g_pIconManager->getSmallIcon(pixoff)),QIconSet::Small,QIconSet::Normal,QIconSet::Off); + TQIconSet is1; + is1.setPixmap(*(g_pIconManager->getSmallIcon(pixon)),TQIconSet::Small,TQIconSet::Normal,TQIconSet::On); + is1.setPixmap(*(g_pIconManager->getSmallIcon(pixoff)),TQIconSet::Small,TQIconSet::Normal,TQIconSet::Off); b->setIconSet(is1); #endif @@ -452,43 +452,43 @@ BUTTON_CLASS * KviWindow::createToolButton(QWidget * par,const char * nam,int pi } // This is always defined... -void KviWindow::createCryptControllerButton(QWidget * par) +void KviWindow::createCryptControllerButton(TQWidget * par) { #ifdef COMPILE_CRYPT_SUPPORT m_pCryptControllerButton = new KviWindowToolPageButton(KVI_SMALLICON_UNLOCKEDOFF,KVI_SMALLICON_UNLOCKED,__tr2qs("Crypting"),buttonContainer(),false,"crypt_controller_button"); - connect(m_pCryptControllerButton,SIGNAL(clicked()),this,SLOT(toggleCryptController())); + connect(m_pCryptControllerButton,TQT_SIGNAL(clicked()),this,TQT_SLOT(toggleCryptController())); #endif // COMPILE_CRYPT_SUPPORT } -void KviWindow::createTextEncodingButton(QWidget * par) +void KviWindow::createTextEncodingButton(TQWidget * par) { if(m_pTextEncodingButton)delete m_pTextEncodingButton; m_pTextEncodingButton = createToolButton(par,"text_encoding_button",KVI_SMALLICON_TEXTENCODING,KVI_SMALLICON_TEXTENCODING,__tr2qs("Private Text Encoding"),false); - connect(m_pTextEncodingButton,SIGNAL(clicked()),this,SLOT(textEncodingButtonClicked())); + connect(m_pTextEncodingButton,TQT_SIGNAL(clicked()),this,TQT_SLOT(textEncodingButtonClicked())); } void KviWindow::textEncodingButtonClicked() { createSystemTextEncodingPopup(); - g_pMdiWindowSystemTextEncodingPopup->popup(m_pTextEncodingButton->mapToGlobal(QPoint(0,m_pTextEncodingButton->height()))); + g_pMdiWindowSystemTextEncodingPopup->popup(m_pTextEncodingButton->mapToGlobal(TQPoint(0,m_pTextEncodingButton->height()))); m_pTextEncodingButton->setOn(false); } -const QString & KviWindow::lastLineOfText() +const TQString & KviWindow::lastLineOfText() { if(m_pIrcView) return m_pIrcView->lastLineOfText(); - return KviQString::empty; + return KviTQString::empty; } -const QString & KviWindow::lastMessageText() +const TQString & KviWindow::lastMessageText() { if(m_pIrcView) return m_pIrcView->lastMessageText(); - return KviQString::empty; + return KviTQString::empty; } -// The following three have to be here even if the crypt support is disabled...moc does not support conditional compilations +// The following three have to be here even if the crypt support is disabled...tqmoc does not support conditional compilations void KviWindow::toggleCryptController() { #ifdef COMPILE_CRYPT_SUPPORT @@ -507,8 +507,8 @@ void KviWindow::toggleCryptController() if(m_pSplitter && m_pInput) { m_pCryptController = new KviCryptController(m_pSplitter,m_pCryptControllerButton,"crypt_controller",this,m_pCryptSessionInfo); - connect(m_pCryptController,SIGNAL(done()),this,SLOT(cryptControllerFinished())); - //setFocusHandlerNoClass(m_pInput,m_pCryptController,"QLineEdit"); //link it! + connect(m_pCryptController,TQT_SIGNAL(done()),this,TQT_SLOT(cryptControllerFinished())); + //setFocusHandlerNoClass(m_pInput,m_pCryptController,TQLINEEDIT_OBJECT_NAME_STRING); //link it! m_pCryptController->show(); if(!m_pCryptControllerButton) return; @@ -527,22 +527,14 @@ void KviWindow::setCryptSessionInfo(KviCryptSessionInfo * inf) m_pCryptSessionInfo = inf; if(m_pCryptSessionInfo) { - connect(m_pCryptSessionInfo->pEngine,SIGNAL(destroyed()),this,SLOT(cryptSessionInfoDestroyed())); + connect(m_pCryptSessionInfo->pEngine,TQT_SIGNAL(destroyed()),this,TQT_SLOT(cryptSessionInfoDestroyed())); } if(m_pCryptControllerButton) { -#if QT_VERSION >= 300 - QIconSet is; - is.setPixmap(*(g_pIconManager->getSmallIcon(m_pCryptSessionInfo ? KVI_SMALLICON_LOCKEDOFF : KVI_SMALLICON_UNLOCKEDOFF)),QIconSet::Small,QIconSet::Normal,QIconSet::Off); - is.setPixmap(*(g_pIconManager->getSmallIcon(m_pCryptSessionInfo ? KVI_SMALLICON_LOCKED : KVI_SMALLICON_UNLOCKED)),QIconSet::Small,QIconSet::Normal,QIconSet::On); + TQIconSet is; + is.setPixmap(*(g_pIconManager->getSmallIcon(m_pCryptSessionInfo ? KVI_SMALLICON_LOCKEDOFF : KVI_SMALLICON_UNLOCKEDOFF)),TQIconSet::Small,TQIconSet::Normal,TQIconSet::Off); + is.setPixmap(*(g_pIconManager->getSmallIcon(m_pCryptSessionInfo ? KVI_SMALLICON_LOCKED : KVI_SMALLICON_UNLOCKED)),TQIconSet::Small,TQIconSet::Normal,TQIconSet::On); m_pCryptControllerButton->setIconSet(is); -#else - - m_pCryptControllerButton->setOnIconSet( - *(g_pIconManager->getSmallIcon(m_pCryptSessionInfo ? KVI_SMALLICON_LOCKEDOFF : KVI_SMALLICON_UNLOCKEDOFF))); - m_pCryptControllerButton->setOffIconSet( - *(g_pIconManager->getSmallIcon(m_pCryptSessionInfo ? KVI_SMALLICON_LOCKED : KVI_SMALLICON_UNLOCKED))); -#endif if(m_pCryptControllerButton->isOn()) m_pCryptControllerButton->setOn(false); @@ -584,28 +576,28 @@ void KviWindow::listWindowTypes() outputNoFmt(KVI_OUT_SYSTEMMESSAGE,m_typeTable[i]); } -void KviWindow::getConfigGroupName(QString &buf) +void KviWindow::getConfigGroupName(TQString &buf) { buf = typeString(); } -void KviWindow::getDefaultLogFileName(QString &buffer) +void KviWindow::getDefaultLogFileName(TQString &buffer) { // FIXME: #warning "Make it configurable ?" - QString date; - QDate dt(QDate::currentDate()); + TQString date; + TQDate dt(TQDate::tqcurrentDate()); date=dt.toString("yyyy.MM.dd"); - QString base; + TQString base; getBaseLogFileName(base); kvi_encodeFileName(base); - base.replace("%%2e","%2e"); + base.tqreplace("%%2e","%2e"); base=base.lower(); - QString tmp; + TQString tmp; if(KVI_OPTION_BOOL(KviOption_boolGzipLogs)) - KviQString::sprintf(tmp,"%s_%s_%s.log.gz",typeString(),base.utf8().data(),date.utf8().data()); + KviTQString::sprintf(tmp,"%s_%s_%s.log.gz",typeString(),base.utf8().data(),date.utf8().data()); else - KviQString::sprintf(tmp,"%s_%s_%s.log",typeString(),base.utf8().data(),date.utf8().data()); + KviTQString::sprintf(tmp,"%s_%s_%s.log",typeString(),base.utf8().data(),date.utf8().data()); g_pApp->getLocalKvircDirectory(buffer,KviApp::Log,tmp); } @@ -614,7 +606,7 @@ void KviWindow::getDefaultLogFileName(QString &buffer) buffer = m_szName; }*/ -void KviWindow::getBaseLogFileName(QString &buffer) +void KviWindow::getBaseLogFileName(TQString &buffer) { buffer = m_szName; } @@ -623,17 +615,17 @@ void KviWindow::getBaseLogFileName(QString &buffer) void KviWindow::saveProperties(KviConfig *cfg) { // store only the non-default text encoding. - QString szCodec = m_szTextEncoding; - QTextCodec * c = defaultTextCodec(); + TQString szCodec = m_szTextEncoding; + TQTextCodec * c = defaultTextCodec(); if(c && m_pTextCodec) { #ifdef COMPILE_USE_QT4 - if(KviQString::equalCI(szCodec,c->name().data()))szCodec = KviQString::empty; // store "default" + if(KviTQString::equalCI(szCodec,c->name().data()))szCodec = KviTQString::empty; // store "default" #else - if(KviQString::equalCI(szCodec,c->name()))szCodec = KviQString::empty; // store "default" + if(KviTQString::equalCI(szCodec,c->name()))szCodec = KviTQString::empty; // store "default" #endif } - QString szKey = "TextEncoding_"; + TQString szKey = "TextEncoding_"; szKey += m_szName; cfg->writeEntry(szKey,szCodec); if(m_pInput) { @@ -650,9 +642,9 @@ void KviWindow::saveProperties(KviConfig *cfg) void KviWindow::loadProperties(KviConfig *cfg) { - QString szKey = "TextEncoding_"; + TQString szKey = "TextEncoding_"; szKey += m_szName; - setTextEncoding(cfg->readQStringEntry(szKey,KviQString::empty).utf8().data()); + setTextEncoding(cfg->readTQStringEntry(szKey,KviTQString::empty).utf8().data()); if(m_pInput) { m_pInput->setButtonsHidden(cfg->readBoolEntry("inputToolButtonsHidden",KVI_OPTION_BOOL(KviOption_boolHideInputToolButtons))); m_pInput->setUserFriendly(cfg->readBoolEntry("commandLineIsUserFriendly",KVI_OPTION_BOOL(KviOption_boolCommandlineInUserFriendlyModeByDefault))); @@ -662,42 +654,42 @@ void KviWindow::loadProperties(KviConfig *cfg) bool bEnableLogs=cfg->readBoolEntry("LoggingEnabled",0); if(!m_pIrcView->isLogging() && bEnableLogs) { - QString szTmp; + TQString szTmp; getBaseLogFileName(szTmp); m_pIrcView->startLogging(); } }*/ } -QPixmap * KviWindow::myIconPtr() +TQPixmap * KviWindow::myIconPtr() { return g_pIconManager->getSmallIcon(KVI_SMALLICON_DEFAULTICON); } -void KviWindow::getTaskBarTipText(QString &buffer) +void KviWindow::getTaskBarTipText(TQString &buffer) { buffer = m_szPlainTextCaption; } -void KviWindow::setFixedCaption(const QString &szCaption) +void KviWindow::setFixedCaption(const TQString &szCaption) { m_szPlainTextCaption = szCaption; } void KviWindow::fillCaptionBuffers() { - QString szCaption = m_szPlainTextCaption; + TQString szCaption = m_szPlainTextCaption; if(szCaption.isEmpty()) szCaption = m_szName; fillSingleColorCaptionBuffers(szCaption); } -void KviWindow::fillSingleColorCaptionBuffers(const QString &szName) +void KviWindow::fillSingleColorCaptionBuffers(const TQString &szName) { - static QString p1("<nobr><font color=\""); - static QString p2("\"><b>"); - static QString p3("</b></font></nobr>"); + static TQString p1("<nobr><font color=\""); + static TQString p2("\"><b>"); + static TQString p3("</b></font></nobr>"); m_szPlainTextCaption = szName; @@ -740,7 +732,7 @@ void KviWindow::createSystemTextEncodingPopup() else { g_pMdiWindowSystemTextEncodingPopupStandard->clear(); - disconnect(g_pMdiWindowSystemTextEncodingPopupStandard,SIGNAL(activated(int)),0,0); + disconnect(g_pMdiWindowSystemTextEncodingPopupStandard,TQT_SIGNAL(activated(int)),0,0); } if(!g_pMdiWindowSystemTextEncodingPopupSmart) @@ -748,7 +740,7 @@ void KviWindow::createSystemTextEncodingPopup() else { g_pMdiWindowSystemTextEncodingPopupSmart->clear(); - disconnect(g_pMdiWindowSystemTextEncodingPopupSmart,SIGNAL(activated(int)),0,0); + disconnect(g_pMdiWindowSystemTextEncodingPopupSmart,TQT_SIGNAL(activated(int)),0,0); } if(!g_pMdiWindowSystemTextEncodingPopupSmartUtf8) @@ -756,11 +748,11 @@ void KviWindow::createSystemTextEncodingPopup() else { g_pMdiWindowSystemTextEncodingPopupSmartUtf8->clear(); - disconnect(g_pMdiWindowSystemTextEncodingPopupSmartUtf8,SIGNAL(activated(int)),0,0); + disconnect(g_pMdiWindowSystemTextEncodingPopupSmartUtf8,TQT_SIGNAL(activated(int)),0,0); } - QTextCodec * c = defaultTextCodec(); - QString tmp = __tr2qs("Use Default Encoding"); + TQTextCodec * c = defaultTextCodec(); + TQString tmp = __tr2qs("Use Default Encoding"); if(c) { tmp += " ("; @@ -768,7 +760,7 @@ void KviWindow::createSystemTextEncodingPopup() tmp += ")"; } - int id = g_pMdiWindowSystemTextEncodingPopup->insertItem(tmp,this,SLOT(systemTextEncodingPopupDefault())); + int id = g_pMdiWindowSystemTextEncodingPopup->insertItem(tmp,this,TQT_SLOT(systemTextEncodingPopupDefault())); if(m_szTextEncoding.isEmpty())g_pMdiWindowSystemTextEncodingPopup->setItemChecked(id,true); g_pMdiWindowSystemTextEncodingPopup->insertSeparator(); @@ -780,22 +772,22 @@ void KviWindow::createSystemTextEncodingPopup() KviLocale::EncodingDescription * d = KviLocale::encodingDescription(i); while(d->szName) { - KviQString::sprintf(tmp,"%s (%s)",d->szName,d->szDescription); + KviTQString::sprintf(tmp,"%s (%s)",d->szName,d->szDescription); KviTalPopupMenu * ppp = d->bSmart ? (d->bSendUtf8 ? g_pMdiWindowSystemTextEncodingPopupSmartUtf8 : g_pMdiWindowSystemTextEncodingPopupSmart) : g_pMdiWindowSystemTextEncodingPopupStandard; id = ppp->insertItem(tmp); - if(KviQString::equalCI(m_szTextEncoding,d->szName)) + if(KviTQString::equalCI(m_szTextEncoding,d->szName)) ppp->setItemChecked(id,true); i = i + 1; d = KviLocale::encodingDescription(i); } - connect(g_pMdiWindowSystemTextEncodingPopupSmart,SIGNAL(activated(int)),this,SLOT(systemTextEncodingPopupSmartActivated(int))); - connect(g_pMdiWindowSystemTextEncodingPopupSmartUtf8,SIGNAL(activated(int)),this,SLOT(systemTextEncodingPopupSmartUtf8Activated(int))); - connect(g_pMdiWindowSystemTextEncodingPopupStandard,SIGNAL(activated(int)),this,SLOT(systemTextEncodingPopupStandardActivated(int))); + connect(g_pMdiWindowSystemTextEncodingPopupSmart,TQT_SIGNAL(activated(int)),this,TQT_SLOT(systemTextEncodingPopupSmartActivated(int))); + connect(g_pMdiWindowSystemTextEncodingPopupSmartUtf8,TQT_SIGNAL(activated(int)),this,TQT_SLOT(systemTextEncodingPopupSmartUtf8Activated(int))); + connect(g_pMdiWindowSystemTextEncodingPopupStandard,TQT_SIGNAL(activated(int)),this,TQT_SLOT(systemTextEncodingPopupStandardActivated(int))); } -void KviWindow::systemPopupRequest(const QPoint &pnt) +void KviWindow::systemPopupRequest(const TQPoint &pnt) { if(!g_pMdiWindowSystemMainPopup) g_pMdiWindowSystemMainPopup = new KviTalPopupMenu(); @@ -807,27 +799,27 @@ void KviWindow::systemPopupRequest(const QPoint &pnt) if(mdiParent()) g_pMdiWindowSystemMainPopup->insertItem(*(g_pIconManager->getSmallIcon(KVI_SMALLICON_UNDOCK)), - __tr2qs("&Undock"),this,SLOT(undock())); + __tr2qs("&Undock"),this,TQT_SLOT(undock())); else g_pMdiWindowSystemMainPopup->insertItem(*(g_pIconManager->getSmallIcon(KVI_SMALLICON_DOCK)), - __tr2qs("&Dock"),this,SLOT(dock())); + __tr2qs("&Dock"),this,TQT_SLOT(dock())); g_pMdiWindowSystemMainPopup->insertSeparator(); int id = g_pMdiWindowSystemMainPopup->insertItem(*(g_pIconManager->getSmallIcon(KVI_SMALLICON_MINIMIZE)), - __tr2qs("Mi&nimize"),this,SLOT(minimize())); + __tr2qs("Mi&nimize"),this,TQT_SLOT(minimize())); g_pMdiWindowSystemMainPopup->setItemEnabled(id,!isMinimized()); id = g_pMdiWindowSystemMainPopup->insertItem(*(g_pIconManager->getSmallIcon(KVI_SMALLICON_MAXIMIZE)), - __tr2qs("Ma&ximize"),this,SLOT(maximize())); + __tr2qs("Ma&ximize"),this,TQT_SLOT(maximize())); g_pMdiWindowSystemMainPopup->setItemEnabled(id,!isMaximized()); id = g_pMdiWindowSystemMainPopup->insertItem(*(g_pIconManager->getSmallIcon(KVI_SMALLICON_RESTORE)), - __tr2qs("&Restore"),this,SLOT(restore())); + __tr2qs("&Restore"),this,TQT_SLOT(restore())); g_pMdiWindowSystemMainPopup->setItemEnabled(id,isMinimized()||isMaximized()); g_pMdiWindowSystemMainPopup->insertSeparator(); g_pMdiWindowSystemMainPopup->insertItem(*(g_pIconManager->getSmallIcon(KVI_SMALLICON_CLOSE)), - __tr2qs("Close"),this,SLOT(close())); + __tr2qs("Close"),this,TQT_SLOT(close())); g_pMdiWindowSystemMainPopup->insertSeparator(); @@ -839,7 +831,7 @@ void KviWindow::systemPopupRequest(const QPoint &pnt) g_pMdiWindowSystemMainPopup->insertItem(*(g_pIconManager->getSmallIcon(KVI_SMALLICON_XY)), - __tr2qs("Sa&ve Window Properties"),this,SLOT(savePropertiesAsDefault())); + __tr2qs("Sa&ve Window Properties"),this,TQT_SLOT(savePropertiesAsDefault())); fillContextPopup(g_pMdiWindowSystemMainPopup); @@ -856,8 +848,8 @@ void KviWindow::systemTextEncodingPopupSmartActivated(int id) { if(!g_pMdiWindowSystemTextEncodingPopupSmart) return; - QString tmp = g_pMdiWindowSystemTextEncodingPopupSmart->text(id); - KviQString::cutFromFirst(tmp," ("); + TQString tmp = g_pMdiWindowSystemTextEncodingPopupSmart->text(id); + KviTQString::cutFromFirst(tmp," ("); setTextEncoding(tmp); } @@ -865,8 +857,8 @@ void KviWindow::systemTextEncodingPopupSmartUtf8Activated(int id) { if(!g_pMdiWindowSystemTextEncodingPopupSmartUtf8) return; - QString tmp = g_pMdiWindowSystemTextEncodingPopupSmartUtf8->text(id); - KviQString::cutFromFirst(tmp," ("); + TQString tmp = g_pMdiWindowSystemTextEncodingPopupSmartUtf8->text(id); + KviTQString::cutFromFirst(tmp," ("); setTextEncoding(tmp); } @@ -874,14 +866,14 @@ void KviWindow::systemTextEncodingPopupStandardActivated(int id) { if(!g_pMdiWindowSystemTextEncodingPopupStandard) return; - QString tmp = g_pMdiWindowSystemTextEncodingPopupStandard->text(id); - KviQString::cutFromFirst(tmp," ("); + TQString tmp = g_pMdiWindowSystemTextEncodingPopupStandard->text(id); + KviTQString::cutFromFirst(tmp," ("); setTextEncoding(tmp); } void KviWindow::savePropertiesAsDefault() { - QString group; + TQString group; getConfigGroupName(group); if(!kvi_strEqualCI(group,typeString())) @@ -895,7 +887,7 @@ void KviWindow::savePropertiesAsDefault() void KviWindow::contextPopup() { - systemPopupRequest(QCursor::pos()); + systemPopupRequest(TQCursor::pos()); } void KviWindow::fillContextPopup(KviTalPopupMenu *) @@ -915,7 +907,7 @@ void KviWindow::dock() void KviWindow::delayedAutoRaise() { - QTimer::singleShot(0,this,SLOT(autoRaise())); + TQTimer::singleShot(0,this,TQT_SLOT(autoRaise())); } void KviWindow::autoRaise() @@ -933,10 +925,10 @@ void KviWindow::autoRaise() void KviWindow::delayedClose() { - QTimer::singleShot(0,this,SLOT(close())); + TQTimer::singleShot(0,this,TQT_SLOT(close())); } -void KviWindow::closeEvent(QCloseEvent *e) +void KviWindow::closeEvent(TQCloseEvent *e) { e->ignore(); g_pFrame->childWindowCloseRequest(this); @@ -944,9 +936,9 @@ void KviWindow::closeEvent(QCloseEvent *e) void KviWindow::updateIcon() { - if(parent()) + if(tqparent()) { - ((KviMdiChild *)parent())->setIcon(*myIconPtr()); + ((KviMdiChild *)tqparent())->setIcon(*myIconPtr()); } else { setIcon(*myIconPtr()); } @@ -959,9 +951,9 @@ void KviWindow::youAreDocked() delete m_pAccel; m_pAccel = 0; } - ((KviMdiChild *)parent())->setIcon(*myIconPtr()); + ((KviMdiChild *)tqparent())->setIcon(*myIconPtr()); updateCaption(); - connect(((KviMdiChild *)parent()),SIGNAL(systemPopupRequest(const QPoint &)),this,SLOT(systemPopupRequest(const QPoint &))); + connect(((KviMdiChild *)tqparent()),TQT_SIGNAL(systemPopupRequest(const TQPoint &)),this,TQT_SLOT(systemPopupRequest(const TQPoint &))); } void KviWindow::youAreUndocked() @@ -988,13 +980,13 @@ void KviWindow::activateSelf() void KviWindow::setFocus() { - // don't trigger the whole Qt focus mechanism.. + // don't trigger the whole TQt focus mechanism.. // just trigger directly our focusInEvent // so we'll redirect the focus to the m_pFocusHandler focusInEvent(0); } -void KviWindow::focusInEvent(QFocusEvent *) +void KviWindow::focusInEvent(TQFocusEvent *) { if(m_pLastFocusedChild) { @@ -1014,25 +1006,25 @@ void KviWindow::focusInEvent(QFocusEvent *) if(m_pIrcView)m_pFocusHandler = m_pIrcView; else { #ifdef COMPILE_USE_QT4 - QList<QObject *> list = children(); - for(QList<QObject *>::Iterator it = list.begin();it != list.end();++it) + TQList<TQObject *> list = tqchildren(); + for(TQList<TQObject *>::Iterator it = list.begin();it != list.end();++it) { - QObject * c = *it; + TQObject * c = *it; if(c->isWidgetType()) { - m_pFocusHandler = (QWidget *)c; + m_pFocusHandler = (TQWidget *)c; break; } } #else - QObjectList *list = (QObjectList *)(children()); - if(list) + TQObjectList list = childrenListObject(); + if(!list.isEmpty()) { - for(QObject * c = list->first();c;c = list->next()) + for(TQObject * c = list.first();c;c = list.next()) { if(c->isWidgetType()) { - m_pFocusHandler = (QWidget *)c; + m_pFocusHandler = (TQWidget *)c; break; } } @@ -1050,7 +1042,7 @@ void KviWindow::focusInEvent(QFocusEvent *) } // Setting the focus to the focus handler usually - // triggers our filter for the children's focusInEvent. + // triggers our filter for the tqchildren's focusInEvent. // This should call activateSelf() and thus // we should be already the active window at this point. // If we're not, then run activateSelf() to fix this. @@ -1059,26 +1051,26 @@ void KviWindow::focusInEvent(QFocusEvent *) updateCaption(); } -bool KviWindow::eventFilter(QObject *o,QEvent *e) +bool KviWindow::eventFilter(TQObject *o,TQEvent *e) { switch(e->type()) { - case QEvent::FocusIn: - m_pLastFocusedChild = (QWidget *)o; + case TQEvent::FocusIn: + m_pLastFocusedChild = (TQWidget *)o; if(g_pActiveWindow != this)activateSelf(); break; - case QEvent::Enter: + case TQEvent::Enter: // this is a handler moved here from KviMdiChild::eventFilter - if(QApplication::overrideCursor()) - QApplication::restoreOverrideCursor(); + if(TQApplication::overrideCursor()) + TQApplication::restoreOverrideCursor(); break; - case QEvent::MouseButtonPress: + case TQEvent::MouseButtonPress: #ifdef COMPILE_USE_QT4 - if( (((QWidget *)o)->focusPolicy() == Qt::NoFocus) || - (((QWidget *)o)->focusPolicy() == Qt::TabFocus)) + if( (((TQWidget *)o)->focusPolicy() == TTQ_NoFocus) || + (((TQWidget *)o)->focusPolicy() == TTQ_TabFocus)) #else - if( (((QWidget *)o)->focusPolicy() == QWidget::NoFocus) || - (((QWidget *)o)->focusPolicy() == QWidget::TabFocus)) + if( (((TQWidget *)o)->focusPolicy() == TQ_NoFocus) || + (((TQWidget *)o)->focusPolicy() == TQ_TabFocus)) #endif { // this will not focus our window @@ -1097,13 +1089,13 @@ bool KviWindow::eventFilter(QObject *o,QEvent *e) } } break; - case QEvent::ChildInserted: - if(((QChildEvent *)e)->child()->isWidgetType()) - childInserted((QWidget *)((QChildEvent *)e)->child()); + case TQEvent::ChildInserted: + if(((TQChildEvent *)e)->child()->isWidgetType()) + childInserted((TQWidget *)((TQChildEvent *)e)->child()); break; - case QEvent::ChildRemoved: - if(((QChildEvent *)e)->child()->isWidgetType()) - childRemoved((QWidget *)((QChildEvent *)e)->child()); + case TQEvent::ChildRemoved: + if(((TQChildEvent *)e)->child()->isWidgetType()) + childRemoved((TQWidget *)((TQChildEvent *)e)->child()); break; default: /* make gcc happy */ break; } @@ -1111,20 +1103,20 @@ bool KviWindow::eventFilter(QObject *o,QEvent *e) } -void KviWindow::childInserted(QWidget * o) +void KviWindow::childInserted(TQWidget * o) { o->removeEventFilter(this); // ensure that we don't filter twice o->installEventFilter(this); // we filter its events - connect(o,SIGNAL(destroyed()),this,SLOT(childDestroyed())); + connect(o,TQT_SIGNAL(destroyed()),this,TQT_SLOT(childDestroyed())); if(o->inherits("KviInput")) m_pFocusHandler = o; else { #ifdef COMPILE_USE_QT4 - if(!m_pFocusHandler && (o->focusPolicy() == Qt::StrongFocus)) + if(!m_pFocusHandler && (o->focusPolicy() == TTQ_StrongFocus)) #else - if(!m_pFocusHandler && (o->focusPolicy() == QWidget::StrongFocus)) + if(!m_pFocusHandler && (o->focusPolicy() == TQ_StrongFocus)) #endif { m_pFocusHandler = o; @@ -1132,23 +1124,23 @@ void KviWindow::childInserted(QWidget * o) } #ifdef COMPILE_USE_QT4 - QList<QObject *> list = o->children(); - for(QList<QObject *>::Iterator it = list.begin();it != list.end();++it) + TQList<TQObject *> list = o->tqchildren(); + for(TQList<TQObject *>::Iterator it = list.begin();it != list.end();++it) { - QObject * c = *it; + TQObject * c = *it; if(c->isWidgetType()) { - childInserted((QWidget *)c); + childInserted((TQWidget *)c); } } #else - QObjectList *list = (QObjectList *)(o->children()); - if(list) + TQObjectList list = o->childrenListObject(); + if(!list.isEmpty()) { - for(QObject * c = list->first();c;c = list->next()) + for(TQObject * c = list.first();c;c = list.next()) { if(c->isWidgetType()) - childInserted((QWidget *)c); + childInserted((TQWidget *)c); } } #endif @@ -1156,11 +1148,11 @@ void KviWindow::childInserted(QWidget * o) void KviWindow::childDestroyed() { - QWidget * s = (QWidget *)sender(); + TQWidget * s = (TQWidget *)sender(); childRemoved(s); } -void KviWindow::childRemoved(QWidget * o) +void KviWindow::childRemoved(TQWidget * o) { //debug("CHILD REMOVED %d",o); o->removeEventFilter(this); @@ -1170,92 +1162,85 @@ void KviWindow::childRemoved(QWidget * o) m_pLastFocusedChild = 0; #ifdef COMPILE_USE_QT4 - QList<QObject *> list = o->children(); - for(QList<QObject *>::Iterator it = list.begin();it != list.end();++it) + TQList<TQObject *> list = o->tqchildren(); + for(TQList<TQObject *>::Iterator it = list.begin();it != list.end();++it) { - QObject * c = *it; + TQObject * c = *it; if(c->isWidgetType()) { - childRemoved((QWidget *)c); + childRemoved((TQWidget *)c); } } #else - QObjectList *list = (QObjectList *)(o->children()); - if(list) + TQObjectList list = o->childrenListObject(); + if(!list.isEmpty()) { - for(QObject * c = list->first();c;c = list->next()) + for(TQObject * c = list.first();c;c = list.next()) { if(c->isWidgetType()) - childRemoved((QWidget *)c); + childRemoved((TQWidget *)c); } - } //else debug("The removed object has no children"); + } //else debug("The removed object has no tqchildren"); #endif } -void KviWindow::childEvent(QChildEvent *e) +void KviWindow::childEvent(TQChildEvent *e) { if(e->child()->isWidgetType()) { if(e->removed()) - childRemoved((QWidget *)(e->child())); + childRemoved((TQWidget *)(e->child())); else - childInserted((QWidget *)(e->child())); + childInserted((TQWidget *)(e->child())); } - QWidget::childEvent(e); + TQWidget::childEvent(e); } -void KviWindow::wheelEvent(QWheelEvent *e) +void KviWindow::wheelEvent(TQWheelEvent *e) { /* NOTHING HERE FOR NOW (FIXME) */ } -void KviWindow::childrenTreeChanged(QWidget * widgetAdded) +void KviWindow::tqchildrenTreeChanged(TQWidget * widgetAdded) { // if(widgetAdded && m_pFocusHandler)setFocusHandler(m_pFocusHandler,widgetAdded); // FIXME: This might be useless - QResizeEvent * e = new QResizeEvent(size(),size()); + TQResizeEvent * e = new TQResizeEvent(size(),size()); resizeEvent(e); delete e; } -void KviWindow::updateBackgrounds(QObject * obj) +void KviWindow::updateBackgrounds(TQObject * obj) { if(!obj) - obj = this; + obj = TQT_TQOBJECT(this); #ifdef COMPILE_USE_QT4 - QList<QObject *> list = obj->children(); + TQList<TQObject *> list = obj->tqchildren(); if (list.count()) { - for(QList<QObject *>::Iterator it = list.begin();it != list.end();++it) + for(TQList<TQObject *>::Iterator it = list.begin();it != list.end();++it) { - QObject * child = *it; - if(child->metaObject()->indexOfProperty("TransparencyCapable") != -1){ + TQObject * child = *it; + if(child->tqmetaObject()->indexOfProperty("TransparencyCapable") != -1){ // if (child->isWidgetType()) - ((QWidget *)child)->update(); + ((TQWidget *)child)->update(); } updateBackgrounds(child); } } #else - QObjectList * list = (QObjectList *)(obj->children()); - if(list) + TQObjectList list = obj->childrenListObject(); + if(!list.isEmpty()) { - for(unsigned int i=0;i<list->count();i++) + for(unsigned int i=0;i<list.count();i++) { - QObject * child = list->at(i); -#if QT_VERSION >= 300 + TQObject * child = list.at(i); // FIXME: check if this code can work with qt < 3.0.0 too - if(child->metaObject()->findProperty("TransparencyCapable",true) != -1) - ((QWidget *)child)->update(); -#else - - QVariant v = list->at(i)->property("TransparencyCapable"); - if(v.isValid()) - ((QWidget *)child)->update(); -#endif + if(child->tqmetaObject()->tqfindProperty("TransparencyCapable",true) != -1) + ((TQWidget *)child)->update(); updateBackgrounds(child); } @@ -1263,13 +1248,13 @@ void KviWindow::updateBackgrounds(QObject * obj) #endif } -void KviWindow::moveEvent(QMoveEvent *e) +void KviWindow::moveEvent(TQMoveEvent *e) { #ifdef COMPILE_PSEUDO_TRANSPARENCY updateBackgrounds(); #endif - QWidget::moveEvent(e); + TQWidget::moveEvent(e); } void KviWindow::minimize() @@ -1300,7 +1285,7 @@ bool KviWindow::isMinimized() if(mdiParent()) return (mdiParent()->state() == KviMdiChild::Minimized); else - return QWidget::isMinimized(); + return TQWidget::isMinimized(); } bool KviWindow::isMaximized() @@ -1327,12 +1312,12 @@ void KviWindow::restore() autoRaise(); } -QRect KviWindow::externalGeometry() +TQRect KviWindow::externalGeometry() { #ifndef Q_OS_MACX return mdiParent() ? mdiParent()->restoredGeometry() : frameGeometry(); #else - return mdiParent() ? mdiParent()->restoredGeometry() : geometry(); + return mdiParent() ? mdiParent()->restoredGeometry() : tqgeometry(); #endif } @@ -1342,7 +1327,7 @@ void KviWindow::applyOptions() if(m_pIrcView)m_pIrcView->applyOptions(); if(m_pInput)m_pInput->applyOptions(); - // trick: relayout + // trick: retqlayout resize(width() - 1,height() - 1); resize(width() + 1,height() + 1); } @@ -1392,8 +1377,8 @@ void KviWindow::internalOutput(KviIrcView * pView,int msg_type,const kvi_wchar_t ( KVI_OPTION_BOOL(KviOption_boolHighlightOnlyNormalMsgQueryToo) && ( - (msg_type == KVI_OUT_QUERYPRIVMSG) || (msg_type == KVI_OUT_QUERYTRACE) || - (msg_type == KVI_OUT_QUERYPRIVMSGCRYPTED) || (msg_type == KVI_OUT_QUERYNOTICE) || (msg_type == KVI_OUT_QUERYNOTICECRYPTED) + (msg_type == KVI_OUT_TQUERYPRIVMSG) || (msg_type == KVI_OUT_TQUERYTRACE) || + (msg_type == KVI_OUT_TQUERYPRIVMSGCRYPTED) || (msg_type == KVI_OUT_TQUERYNOTICE) || (msg_type == KVI_OUT_TQUERYNOTICECRYPTED) ) ) || @@ -1417,59 +1402,59 @@ void KviWindow::internalOutput(KviIrcView * pView,int msg_type,const kvi_wchar_t void KviWindow::output(int msg_type,const char *format,...) { - QString szFmt(format); + TQString szFmt(format); kvi_va_list l; kvi_va_start(l,format); - QString szBuf; - KviQString::vsprintf(szBuf,szFmt,l); + TQString szBuf; + KviTQString::vsprintf(szBuf,szFmt,l); kvi_va_end(l); preprocessMessage(szBuf); - const QChar * pC = KviQString::nullTerminatedArray(szBuf); + const TQChar * pC = KviTQString::nullTerminatedArray(szBuf); if(!pC)return; internalOutput(m_pIrcView,msg_type,(kvi_wchar_t *)pC); } -void KviWindow::output(int msg_type,const QString &szFmt,...) +void KviWindow::output(int msg_type,const TQString &szFmt,...) { kvi_va_list l; kvi_va_start_by_reference(l,szFmt); - QString szBuf; - KviQString::vsprintf(szBuf,szFmt,l); + TQString szBuf; + KviTQString::vsprintf(szBuf,szFmt,l); kvi_va_end(l); preprocessMessage(szBuf); - const QChar * pC = KviQString::nullTerminatedArray(szBuf); + const TQChar * pC = KviTQString::nullTerminatedArray(szBuf); if(!pC)return; internalOutput(m_pIrcView,msg_type,(kvi_wchar_t *)pC); } void KviWindow::output(int msg_type,const kvi_wchar_t *format,...) { - QString szFmt=QString::fromUtf8(KviStr(format).ptr()); + TQString szFmt=TQString::fromUtf8(KviStr(format).ptr()); kvi_va_list l; kvi_va_start(l,format); - QString szBuf; - KviQString::vsprintf(szBuf,szFmt,l); + TQString szBuf; + KviTQString::vsprintf(szBuf,szFmt,l); kvi_va_end(l); preprocessMessage(szBuf); - const QChar * pC = KviQString::nullTerminatedArray(szBuf); + const TQChar * pC = KviTQString::nullTerminatedArray(szBuf); if(!pC)return; internalOutput(m_pIrcView,msg_type,(kvi_wchar_t *)pC); } void KviWindow::outputNoFmt(int msg_type,const char * text,int iFlags) { - QString szText(text); + TQString szText(text); preprocessMessage(szText); - const QChar * pC = KviQString::nullTerminatedArray(szText); + const TQChar * pC = KviTQString::nullTerminatedArray(szText); if(!pC)return; internalOutput(m_pIrcView,msg_type,(kvi_wchar_t *)pC,iFlags); } -void KviWindow::outputNoFmt(int msg_type,const QString &szText,int iFlags) +void KviWindow::outputNoFmt(int msg_type,const TQString &szText,int iFlags) { - QString szBuf(szText); + TQString szBuf(szText); preprocessMessage(szBuf); - const QChar * pC = KviQString::nullTerminatedArray(szBuf); + const TQChar * pC = KviTQString::nullTerminatedArray(szBuf); if(!pC)return; internalOutput(m_pIrcView,msg_type,(kvi_wchar_t *)pC,iFlags); } @@ -1488,27 +1473,27 @@ void KviWindow::unhighlight() Fixed */ -void KviWindow::preprocessMessage(QString & szMessage) +void KviWindow::preprocessMessage(TQString & szMessage) { // slow #ifdef COMPILE_USE_QT4 - QStringList strings = szMessage.split(" "); + TQStringList strings = szMessage.split(" "); #else - QStringList strings = QStringList::split(" ",szMessage, TRUE); + TQStringList strings = TQStringList::split(" ",szMessage, TRUE); #endif - for ( QStringList::Iterator it = strings.begin(); it != strings.end(); ++it ) { - QString tmp(*it); - if(tmp.contains('\r')) continue; + for ( TQStringList::Iterator it = strings.begin(); it != strings.end(); ++it ) { + TQString tmp(*it); + if(tmp.tqcontains('\r')) continue; tmp = KviMircCntrl::stripControlBytes(tmp); tmp.stripWhiteSpace(); if(m_pConsole) if(m_pConsole->connection()) - if(m_pConsole->connection()->serverInfo()->supportedChannelTypes().contains(tmp[0])) + if(m_pConsole->connection()->serverInfo()->supportedChannelTypes().tqcontains(tmp[0])) if((*it)==tmp) - *it=QString("\r!c\r%1\r").arg(*it); + *it=TQString("\r!c\r%1\r").tqarg(*it); else { - *it=QString("\r!c%1\r%2\r").arg(tmp).arg(*it); + *it=TQString("\r!c%1\r%2\r").tqarg(tmp).tqarg(*it); } } szMessage=strings.join(" "); |