summaryrefslogtreecommitdiffstats
path: root/kbarcode/textitem.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-29 00:55:34 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-29 00:55:34 +0000
commitc4189d200e71c7ef82e9a6e34935ad225154d658 (patch)
treef7f29a1159e0402472ff2ab22617a8113f66263c /kbarcode/textitem.h
parent2f888b1578e65ec1bc514996eb509fcaf34462d6 (diff)
downloadkbarcode-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/textitem.h')
-rw-r--r--kbarcode/textitem.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/kbarcode/textitem.h b/kbarcode/textitem.h
index cec5d46..9c0b5a2 100644
--- a/kbarcode/textitem.h
+++ b/kbarcode/textitem.h
@@ -17,36 +17,36 @@
#ifndef TEXTITEM_H
#define TEXTITEM_H
-#include <qstring.h>
+#include <tqstring.h>
#include "documentitem.h"
class LabelEditor;
/**
* Class TextItem
- * Formated rich text (drawn using either DSRichText or QSimpleRichText - once it is bug free) on screen or printer.
+ * Formated rich text (drawn using either DSRichText or TQSimpleRichText - once it is bug free) on screen or printer.
*/
class TextItem : public DocumentItem {
public:
TextItem ();
- void draw (QPainter* painter);
- void drawZpl( QTextStream* stream );
- void drawIpl( QTextStream* stream, IPLUtils* utils );
- void drawEPcl( QTextStream* stream );
+ void draw (TQPainter* painter);
+ void drawZpl( TQTextStream* stream );
+ void drawIpl( TQTextStream* stream, IPLUtils* utils );
+ void drawEPcl( TQTextStream* stream );
int rtti () const { return eRtti_Text; }
- void loadXML (QDomElement* element);
- void saveXML (QDomElement* element);
+ void loadXML (TQDomElement* element);
+ void saveXML (TQDomElement* element);
- void setText (const QString & text);
- QString text () const;
+ void setText (const TQString & text);
+ TQString text () const;
inline void setRotation( double rot ) { m_rotation = rot; }
inline double rotation() const { return m_rotation; }
- static bool IsQtTextRenderingBroken();
+ static bool IsTQtTextRenderingBroken();
private:
void init();
@@ -55,7 +55,7 @@ private:
static bool s_qt_broken_init;
double m_rotation;
- QString m_text;
+ TQString m_text;
};
#endif //TEXTITEM_H