diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-29 00:55:34 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-29 00:55:34 +0000 |
commit | c4189d200e71c7ef82e9a6e34935ad225154d658 (patch) | |
tree | f7f29a1159e0402472ff2ab22617a8113f66263c /kbarcode/barcodeprinterdlg.cpp | |
parent | 2f888b1578e65ec1bc514996eb509fcaf34462d6 (diff) | |
download | kbarcode-c4189d200e71c7ef82e9a6e34935ad225154d658.tar.gz kbarcode-c4189d200e71c7ef82e9a6e34935ad225154d658.zip |
TQt4 port kbarcode
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kbarcode@1233956 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kbarcode/barcodeprinterdlg.cpp')
-rw-r--r-- | kbarcode/barcodeprinterdlg.cpp | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/kbarcode/barcodeprinterdlg.cpp b/kbarcode/barcodeprinterdlg.cpp index 3488a97..e565bd2 100644 --- a/kbarcode/barcodeprinterdlg.cpp +++ b/kbarcode/barcodeprinterdlg.cpp @@ -22,38 +22,38 @@ #include <klocale.h> #include <kurlrequester.h> -#include <qcheckbox.h> -#include <qlabel.h> -#include <qlayout.h> -#include <qvbuttongroup.h> +#include <tqcheckbox.h> +#include <tqlabel.h> +#include <tqlayout.h> +#include <tqvbuttongroup.h> -BarcodePrinterDlg::BarcodePrinterDlg(QWidget *parent, const char *name) +BarcodePrinterDlg::BarcodePrinterDlg(TQWidget *tqparent, const char *name) : KDialogBase( KDialogBase::Plain, i18n("Barcode Printer"), - KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Ok, parent,name) + KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Ok, tqparent,name) { - QGridLayout* layout = new QGridLayout( plainPage(), 6, 6 ); + TQGridLayout* tqlayout = new TQGridLayout( plainPage(), 6, 6 ); - QLabel* label = new QLabel( i18n("&Output Format:"), plainPage() ); + TQLabel* label = new TQLabel( i18n("&Output Format:"), plainPage() ); comboFormat = new KComboBox( false, plainPage() ); label->setBuddy( comboFormat ); - checkFile = new QCheckBox( i18n("&Print to File"), plainPage() ); + checkFile = new TQCheckBox( i18n("&Print to File"), plainPage() ); - label2 = new QLabel( i18n("&Filename:"), plainPage() ); + label2 = new TQLabel( i18n("&Filename:"), plainPage() ); requester = new KURLRequester( plainPage() ); label2->setBuddy( requester ); - label3 = new QLabel( i18n("&Device:"), plainPage() ); + label3 = new TQLabel( i18n("&Device:"), plainPage() ); comboDevice = new KComboBox( true, plainPage() ); label3->setBuddy( comboDevice ); - layout->addWidget( label, 0, 0 ); - layout->addMultiCellWidget( comboFormat, 0, 0, 1, 2 ); - layout->addMultiCellWidget( checkFile, 1, 1, 1, 2 ); - layout->addWidget( label2, 2, 0 ); - layout->addWidget( requester, 2, 1 ); - layout->addWidget( label3, 3, 0 ); - layout->addMultiCellWidget( comboDevice, 3, 3, 1, 2 ); + tqlayout->addWidget( label, 0, 0 ); + tqlayout->addMultiCellWidget( comboFormat, 0, 0, 1, 2 ); + tqlayout->addMultiCellWidget( checkFile, 1, 1, 1, 2 ); + tqlayout->addWidget( label2, 2, 0 ); + tqlayout->addWidget( requester, 2, 1 ); + tqlayout->addWidget( label3, 3, 0 ); + tqlayout->addMultiCellWidget( comboDevice, 3, 3, 1, 2 ); comboFormat->insertItem( i18n("TEC Printer (TEC)") ); comboFormat->insertItem( i18n("Zebra Printer (ZPL)") ); @@ -68,9 +68,9 @@ BarcodePrinterDlg::BarcodePrinterDlg(QWidget *parent, const char *name) comboDevice->insertItem( "/dev/usb/lp1" ); comboDevice->insertItem( "/dev/usb/lp2" ); - connect( checkFile, SIGNAL( clicked() ), this, SLOT( enableControls() ) ); + connect( checkFile, TQT_SIGNAL( clicked() ), this, TQT_SLOT( enableControls() ) ); -// KFileDialog fd( QString::null, "*.zpl|Zebra Printer Language (*.zpl)\n*.ipl|Intermec Printer Language (*.ipl)", this, "fd", true ); +// KFileDialog fd( TQString(), "*.zpl|Zebra Printer Language (*.zpl)\n*.ipl|Intermec Printer Language (*.ipl)", this, "fd", true ); enableControls(); } @@ -112,12 +112,12 @@ bool BarcodePrinterDlg::printToFile() const return checkFile->isChecked(); } -const QString BarcodePrinterDlg::deviceName() const +const TQString BarcodePrinterDlg::deviceName() const { return comboDevice->currentText(); } -const QString BarcodePrinterDlg::fileName() const +const TQString BarcodePrinterDlg::fileName() const { return requester->url(); } |