diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:44:01 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:44:01 +0000 |
commit | 479f5f799523bffbcc83dff581a2299c047c6fff (patch) | |
tree | 186aae707ed02aac6c7cab2fb14e97f72aca5e36 /kjsembed/tools/headers/qpen.h | |
parent | f1dbff6145c98324ff82e34448b7483727e8ace4 (diff) | |
download | tdebindings-479f5f799523bffbcc83dff581a2299c047c6fff.tar.gz tdebindings-479f5f799523bffbcc83dff581a2299c047c6fff.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1157645 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kjsembed/tools/headers/qpen.h')
-rw-r--r-- | kjsembed/tools/headers/qpen.h | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/kjsembed/tools/headers/qpen.h b/kjsembed/tools/headers/qpen.h index 38befc90..7db9325e 100644 --- a/kjsembed/tools/headers/qpen.h +++ b/kjsembed/tools/headers/qpen.h @@ -1,7 +1,7 @@ /**************************************************************************** ** ** -** Definition of QPen class +** Definition of TQPen class ** ** Created : 940112 ** @@ -39,35 +39,35 @@ #define QPEN_H #ifndef QT_H -#include "qcolor.h" -#include "qshared.h" +#include "tqcolor.h" +#include "tqshared.h" #endif // QT_H -class Q_EXPORT QPen: public Qt +class Q_EXPORT TQPen: public Qt { public: - QPen(); - QPen( PenStyle ); - QPen( const QColor &color, uint width=0, PenStyle style=SolidLine ); - QPen( const QColor &cl, uint w, PenStyle s, PenCapStyle c, PenJoinStyle j); - QPen( const QPen & ); - ~QPen(); - QPen &operator=( const QPen & ); + TQPen(); + TQPen( PenStyle ); + TQPen( const TQColor &color, uint width=0, PenStyle style=SolidLine ); + TQPen( const TQColor &cl, uint w, PenStyle s, PenCapStyle c, PenJoinStyle j); + TQPen( const TQPen & ); + ~TQPen(); + TQPen &operator=( const TQPen & ); PenStyle style() const { return data->style; } void setStyle( PenStyle ); uint width() const { return data->width; } void setWidth( uint ); - const QColor &color() const { return data->color; } - void setColor( const QColor & ); + const TQColor &color() const { return data->color; } + void setColor( const TQColor & ); PenCapStyle capStyle() const; void setCapStyle( PenCapStyle ); PenJoinStyle joinStyle() const; void setJoinStyle( PenJoinStyle ); - bool operator==( const QPen &p ) const; - bool operator!=( const QPen &p ) const + bool operator==( const TQPen &p ) const; + bool operator!=( const TQPen &p ) const { return !(operator==(p)); } private: @@ -78,7 +78,7 @@ private: QPen copy() const; void detach(); - void init( const QColor &, uint, uint ); + void init( const TQColor &, uint, uint ); struct QPenData : public QShared { // pen data PenStyle style; uint width; @@ -89,11 +89,11 @@ private: /***************************************************************************** - QPen stream functions + TQPen stream functions *****************************************************************************/ #ifndef QT_NO_DATASTREAM -Q_EXPORT QDataStream &operator<<( QDataStream &, const QPen & ); -Q_EXPORT QDataStream &operator>>( QDataStream &, QPen & ); +Q_EXPORT TQDataStream &operator<<( TQDataStream &, const TQPen & ); +Q_EXPORT TQDataStream &operator>>( TQDataStream &, TQPen & ); #endif #endif // QPEN_H |