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/label.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/label.h')
-rw-r--r-- | kbarcode/label.h | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/kbarcode/label.h b/kbarcode/label.h index 698b861..3e9f814 100644 --- a/kbarcode/label.h +++ b/kbarcode/label.h @@ -18,8 +18,8 @@ #ifndef LABEL_H #define LABEL_H -#include <qfont.h> -#include <qpicture.h> +#include <tqfont.h> +#include <tqpicture.h> #include "labelutils.h" #include "xmlutils.h" #include "definition.h" @@ -27,30 +27,30 @@ class BarCode; class Barkode; -class QDomDocument; -class QIODevice; -class QString; -class QPainter; -class QPaintDevice; -class QTextStream; +class TQDomDocument; +class TQIODevice; +class TQString; +class TQPainter; +class TQPaintDevice; +class TQTextStream; class KPrinter; -/** Creates a QPicture from the XML KBarcode file. If a SQL connections is available +/** Creates a TQPicture from the XML KBarcode file. If a SQL connections is available * the data from the SQL tables will be used, too. */ class Label : private LabelUtils, private XMLUtils, public TokenProvider { public: - Label( Definition* _def, QIODevice* device, QString labelname, QPaintDevice* _printer, QString customer_id, QString _article_no, QString _group = "" ); - Label( Definition* _def, QIODevice* device, QString labelname, QPaintDevice* _printer ); + Label( Definition* _def, TQIODevice* device, TQString labelname, TQPaintDevice* _printer, TQString customer_id, TQString _article_no, TQString _group = "" ); + Label( Definition* _def, TQIODevice* device, TQString labelname, TQPaintDevice* _printer ); ~Label(); - void epcl( QTextStream* stream ); - void ipl( QTextStream* stream ); - void zpl( QTextStream* stream ); + void epcl( TQTextStream* stream ); + void ipl( TQTextStream* stream ); + void zpl( TQTextStream* stream ); - void draw( QPainter* painter,int x, int y ); + void draw( TQPainter* painter,int x, int y ); int getId() const; - static void getXLabel( double x, double y, double width, double height, QPainter* painter, int mode, QString value = "" ); + static void getXLabel( double x, double y, double width, double height, TQPainter* painter, int mode, TQString value = "" ); //void setPrinter( KPrinter* p ) { m_printer = p; } @@ -60,7 +60,7 @@ class Label : private LabelUtils, private XMLUtils, public TokenProvider { bool update(); private: - void load( QIODevice* device ); + void load( TQIODevice* device ); void setBarcodeValue( Barkode* barcode ); void InitBarcodes(); bool drawThisItem( const DocumentItem* item ); @@ -69,7 +69,7 @@ class Label : private LabelUtils, private XMLUtils, public TokenProvider { DocumentItemList m_list; Definition* d; - QPaintDevice* m_printer; + TQPaintDevice* m_printer; bool m_sequence; }; |