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/printersettings.h | |
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/printersettings.h')
-rw-r--r-- | kbarcode/printersettings.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/kbarcode/printersettings.h b/kbarcode/printersettings.h index 8083fcb..e248237 100644 --- a/kbarcode/printersettings.h +++ b/kbarcode/printersettings.h @@ -18,8 +18,8 @@ #ifndef PRINTERSETTINGS_H #define PRINTERSETTINGS_H -#include <qobject.h> -#include <qstring.h> +#include <tqobject.h> +#include <tqstring.h> #include <kprinter.h> class KURL; @@ -41,9 +41,9 @@ typedef struct labelprinterdata { bool border; int format; // index of the page format - QString comment; - QString separator; - QString quote; + TQString comment; + TQString separator; + TQString quote; }; typedef struct PageFormatInfo @@ -57,10 +57,11 @@ typedef struct PageFormatInfo class KPrinter; class KComboBox; -class PrinterSettings: public QObject { +class PrinterSettings: public TQObject { Q_OBJECT + TQ_OBJECT public: - enum { High = QPrinter::HighResolution, Middle, VeryHigh }; + enum { High = TQPrinter::HighResolution, Middle, VeryHigh }; enum { TEC, ZEBRA, INTERMEC, EPCL }; PrinterSettings(); @@ -80,7 +81,7 @@ class PrinterSettings: public QObject { static PrinterSettings* getInstance(); // don't forget to delete printer - KPrinter* setupPrinter( const KURL & url, QWidget* parent, bool immediately = false, const QString & prn = QString::null ); + KPrinter* setupPrinter( const KURL & url, TQWidget* tqparent, bool immediately = false, const TQString & prn = TQString() ); public slots: void loadConfig(); |