diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
commit | f008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch) | |
tree | 8e9244c4d4957c36be81e15b566b4aa5ea26c982 /kpresenter/KPrGradient.h | |
parent | 1210f27b660efb7b37ff43ec68763e85a403471f (diff) | |
download | koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip |
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpresenter/KPrGradient.h')
-rw-r--r-- | kpresenter/KPrGradient.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/kpresenter/KPrGradient.h b/kpresenter/KPrGradient.h index bbf8dc54..7ffad247 100644 --- a/kpresenter/KPrGradient.h +++ b/kpresenter/KPrGradient.h @@ -21,12 +21,12 @@ #ifndef kpgradient_h #define kpgradient_h -#include <qcolor.h> +#include <tqcolor.h> #include <KoBrush.h> #include <kpixmap.h> #include "global.h" -class QPainter; +class TQPainter; class KoTextZoomHandler; /** @@ -40,24 +40,24 @@ class KoTextZoomHandler; class KPrGradient { public: - KPrGradient( const QColor &_color1, const QColor &_color2, BCType _bcType, + KPrGradient( const TQColor &_color1, const TQColor &_color2, BCType _bcType, bool _unbalanced, int _xfactor, int _yfactor ); ~KPrGradient() {} - QColor getColor1() const { return color1; } - QColor getColor2() const { return color2; } + TQColor getColor1() const { return color1; } + TQColor getColor2() const { return color2; } BCType getBackColorType() const { return bcType; } bool getUnbalanced() const { return unbalanced; } int getXFactor() const { return xFactor; } int getYFactor() const { return yFactor; } - void setColor1( const QColor &_color ) { color1 = _color; m_bDirty = true; } - void setColor2( const QColor &_color ) { color2 = _color; m_bDirty = true; } + void setColor1( const TQColor &_color ) { color1 = _color; m_bDirty = true; } + void setColor2( const TQColor &_color ) { color2 = _color; m_bDirty = true; } void setBackColorType( BCType _type ) { bcType = _type; m_bDirty = true; } void setUnbalanced( bool b ) { unbalanced = b; m_bDirty = true; } void setXFactor( int i ) { xFactor = i; m_bDirty = true; } void setYFactor( int i ) { yFactor = i; m_bDirty = true; } - void setSize( const QSize& _size ) + void setSize( const TQSize& _size ) { if ( size() != _size ) { m_pixmap.resize( _size ); @@ -66,14 +66,14 @@ public: } // Sets all of the above at once. Used when loading. - void setParameters(const QColor &c1, const QColor &c2, BCType _type, + void setParameters(const TQColor &c1, const TQColor &c2, BCType _type, bool _unbalanced, int xf, int yf); /** Return the pixmap containing the gradient. * Calculated on demand if necessary (if m_bDirty is true). */ - const QPixmap& pixmap() const; - QSize size() const { return m_pixmap.size(); } + const TQPixmap& pixmap() const; + TQSize size() const { return m_pixmap.size(); } void addRef(); bool removeRef(); @@ -84,7 +84,7 @@ protected: KPrGradient() {} - QColor color1, color2; + TQColor color1, color2; BCType bcType; KPixmap m_pixmap; |