diff options
Diffstat (limited to 'src/kvirc/ui/kvi_htmldialog.cpp')
-rw-r--r-- | src/kvirc/ui/kvi_htmldialog.cpp | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/src/kvirc/ui/kvi_htmldialog.cpp b/src/kvirc/ui/kvi_htmldialog.cpp index 6a8b4378..7c16fe5f 100644 --- a/src/kvirc/ui/kvi_htmldialog.cpp +++ b/src/kvirc/ui/kvi_htmldialog.cpp @@ -27,13 +27,13 @@ #include "kvi_locale.h" #include "kvi_tal_textedit.h" -#include <qlabel.h> -#include <qpushbutton.h> -#include <qlayout.h> -#include <qtextbrowser.h> +#include <tqlabel.h> +#include <tqpushbutton.h> +#include <tqlayout.h> +#include <tqtextbrowser.h> -KviHtmlDialog::KviHtmlDialog(QWidget * pParent,KviHtmlDialogData * pData) -: QDialog(pParent) +KviHtmlDialog::KviHtmlDialog(TQWidget * pParent,KviHtmlDialogData * pData) +: TQDialog(pParent) { m_pData = pData; @@ -45,18 +45,18 @@ KviHtmlDialog::KviHtmlDialog(QWidget * pParent,KviHtmlDialogData * pData) if(!pData->pixIcon.isNull()) setIcon(pData->pixIcon); - QGridLayout * g = new QGridLayout(this,4,3,7,7); + TQGridLayout * g = new TQGridLayout(this,4,3,7,7); - QLabel * l; - QTextBrowser * te; - QPushButton * pb; + TQLabel * l; + TQTextBrowser * te; + TQPushButton * pb; int iUp = 0; int iDown = 2; if(!pData->szUpperLabelText.isEmpty()) { - l = new QLabel(this); + l = new TQLabel(this); l->setText(pData->szUpperLabelText); g->addMultiCellWidget(l,0,0,0,2); iUp = 1; @@ -64,13 +64,13 @@ KviHtmlDialog::KviHtmlDialog(QWidget * pParent,KviHtmlDialogData * pData) if(!pData->szLowerLabelText.isEmpty()) { - l = new QLabel(this); + l = new TQLabel(this); l->setText(pData->szLowerLabelText); g->addMultiCellWidget(l,2,2,0,2); iDown = 1; } - te = new QTextBrowser(this); + te = new TQTextBrowser(this); te->setText(pData->szHtmlText); //te->setReadOnly(true); @@ -84,29 +84,29 @@ KviHtmlDialog::KviHtmlDialog(QWidget * pParent,KviHtmlDialogData * pData) if(pData->iCancelButton > iButtons)pData->iCancelButton = iButtons; if(pData->iDefaultButton > iButtons)pData->iDefaultButton = iButtons; - pb = new QPushButton(this); + pb = new TQPushButton(this); pb->setText(pData->szButton1Text.isEmpty() ? __tr2qs("OK") : pData->szButton1Text); pb->setDefault(pData->iDefaultButton == 1); int iCoord = iButtons == 1 ? 1 : 0; g->addWidget(pb,3,iCoord); - connect(pb,SIGNAL(clicked()),this,SLOT(button1Pressed())); + connect(pb,TQT_SIGNAL(clicked()),this,TQT_SLOT(button1Pressed())); if(!pData->szButton2Text.isEmpty()) { - pb = new QPushButton(this); + pb = new TQPushButton(this); pb->setText(pData->szButton2Text); pb->setDefault(pData->iDefaultButton == 2); iCoord = iButtons == 2 ? 2 : 1; g->addWidget(pb,3,iCoord); - connect(pb,SIGNAL(clicked()),this,SLOT(button2Pressed())); + connect(pb,TQT_SIGNAL(clicked()),this,TQT_SLOT(button2Pressed())); if(!pData->szButton3Text.isEmpty()) { - pb = new QPushButton(this); + pb = new TQPushButton(this); pb->setText(pData->szButton3Text); pb->setDefault(pData->iDefaultButton == 3); g->addWidget(pb,3,2); - connect(pb,SIGNAL(clicked()),this,SLOT(button3Pressed())); + connect(pb,TQT_SIGNAL(clicked()),this,TQT_SLOT(button3Pressed())); } } @@ -141,10 +141,10 @@ void KviHtmlDialog::button3Pressed() void KviHtmlDialog::reject() { m_pData->iSelectedButton = m_pData->iCancelButton; - QDialog::reject(); + TQDialog::reject(); } -int KviHtmlDialog::display(QWidget * pParent,KviHtmlDialogData * pData) +int KviHtmlDialog::display(TQWidget * pParent,KviHtmlDialogData * pData) { KviHtmlDialog * pDialog = new KviHtmlDialog(pParent,pData); pDialog->exec(); |