diff options
Diffstat (limited to 'src/kvirc/ui/kvi_ctcppagedialog.cpp')
-rw-r--r-- | src/kvirc/ui/kvi_ctcppagedialog.cpp | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/src/kvirc/ui/kvi_ctcppagedialog.cpp b/src/kvirc/ui/kvi_ctcppagedialog.cpp index e6f392d6..da821469 100644 --- a/src/kvirc/ui/kvi_ctcppagedialog.cpp +++ b/src/kvirc/ui/kvi_ctcppagedialog.cpp @@ -29,40 +29,40 @@ #include "kvi_iconmanager.h" -#include <qdatetime.h> -#include <qlayout.h> -#include <qlabel.h> -#include <qpixmap.h> +#include <tqdatetime.h> +#include <tqlayout.h> +#include <tqlabel.h> +#include <tqpixmap.h> #ifdef COMPILE_USE_QT4 - #include <qdesktopwidget.h> + #include <tqdesktopwidget.h> #endif // kvi_app.cpp extern KVIRC_API KviCtcpPageDialog * g_pCtcpPageDialog; KviCtcpPageDialog::KviCtcpPageDialog() -: QWidget(0,"kvirc_ctcppage_dialog", +: TQWidget(0,"kvirc_ctcppage_dialog", #ifdef COMPILE_USE_QT4 - Qt::WindowStaysOnTopHint | Qt::Tool | Qt::Dialog | Qt::Window) + TQt::WindowStaysOnTopHint | TQt::Tool | TQt::Dialog | TQt::Window) #else WStyle_StaysOnTop | WStyle_Tool | WType_Dialog | WType_TopLevel) #endif { - QGridLayout * g = new QGridLayout(this,4,1,6,0); + TQGridLayout * g = new TQGridLayout(this,4,1,6,0); m_pWidgetStack = new KviTalWidgetStack(this); g->addWidget(m_pWidgetStack,0,0); - m_pTabBar = new QTabBar(this); - m_pTabBar->setShape(QTabBar::TriangularBelow); - connect(m_pTabBar,SIGNAL(selected(int)),this,SLOT(tabSelected(int))); + m_pTabBar = new TQTabBar(this); + m_pTabBar->setShape(TQTabBar::TriangularBelow); + connect(m_pTabBar,TQT_SIGNAL(selected(int)),this,TQT_SLOT(tabSelected(int))); g->addWidget(m_pTabBar,1,0); g->setRowStretch(0,1); g->addRowSpacing(2,15); - m_pCloseButton = new QPushButton(__tr2qs("Close"),this); - connect(m_pCloseButton,SIGNAL(clicked()),this,SLOT(die())); + m_pCloseButton = new TQPushButton(__tr2qs("Close"),this); + connect(m_pCloseButton,TQT_SIGNAL(clicked()),this,TQT_SLOT(die())); g->addWidget(m_pCloseButton,3,0); setMinimumSize(300,200); @@ -93,19 +93,19 @@ void KviCtcpPageDialog::tabSelected(int id) m_pWidgetStack->raiseWidget(id); } -void KviCtcpPageDialog::addPage(const QString &szNick,const QString &szUser,const QString &szHost,const QString &szMsg) +void KviCtcpPageDialog::addPage(const TQString &szNick,const TQString &szUser,const TQString &szHost,const TQString &szMsg) { #ifdef COMPILE_USE_QT4 int id = m_pTabBar->addTab(szNick); #else - int id = m_pTabBar->addTab(new QTab(szNick)); + int id = m_pTabBar->addTab(new TQTab(szNick)); #endif - QLabel * l = new QLabel(this); - l->setFrameStyle(QFrame::Raised | QFrame::StyledPanel); + TQLabel * l = new TQLabel(this); + l->setFrameStyle(TQFrame::Raised | TQFrame::StyledPanel); //l->setMaximumWidth(600); - QString date = QDateTime::currentDateTime().toString(); + TQString date = TQDateTime::tqcurrentDateTime().toString(); - QString tmp = "<center>"; + TQString tmp = "<center>"; tmp += __tr2qs("You have been paged by"); tmp += "<br><b>"; tmp += szNick; @@ -125,7 +125,7 @@ void KviCtcpPageDialog::addPage(const QString &szNick,const QString &szUser,cons m_pTabBar->setCurrentTab(id); } -void KviCtcpPageDialog::closeEvent(QCloseEvent *) +void KviCtcpPageDialog::closeEvent(TQCloseEvent *) { delete this; } @@ -138,9 +138,9 @@ void KviCtcpPageDialog::popup() m_pCloseButton->setFocus(); } -void KviCtcpPageDialog::showEvent(QShowEvent *e) +void KviCtcpPageDialog::showEvent(TQShowEvent *e) { - QWidget::showEvent(e); + TQWidget::showEvent(e); center(); } |