summaryrefslogtreecommitdiffstats
path: root/krita/core/kis_gradient.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
commitf008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch)
tree8e9244c4d4957c36be81e15b566b4aa5ea26c982 /krita/core/kis_gradient.h
parent1210f27b660efb7b37ff43ec68763e85a403471f (diff)
downloadkoffice-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 'krita/core/kis_gradient.h')
-rw-r--r--krita/core/kis_gradient.h31
1 files changed, 16 insertions, 15 deletions
diff --git a/krita/core/kis_gradient.h b/krita/core/kis_gradient.h
index 3610e0e0..50bc0fd8 100644
--- a/krita/core/kis_gradient.h
+++ b/krita/core/kis_gradient.h
@@ -24,15 +24,15 @@
#ifndef KIS_GRADIENT_H
#define KIS_GRADIENT_H
-#include <qvaluevector.h>
-#include <qcolor.h>
+#include <tqvaluevector.h>
+#include <tqcolor.h>
#include <kio/job.h>
#include "kis_resource.h"
#include "kis_global.h"
-class QImage;
+class TQImage;
enum {
INTERP_LINEAR = 0,
@@ -48,17 +48,17 @@ enum {
COLOR_INTERP_HSV_CW
};
-// TODO: Replace QColor with KisColor
+// TODO: Replace TQColor with KisColor
class Color {
public:
Color() { m_alpha = 0; }
- Color(const QColor& color, double alpha) { m_color = color; m_alpha = alpha; }
+ Color(const TQColor& color, double alpha) { m_color = color; m_alpha = alpha; }
- const QColor& color() const { return m_color; }
+ const TQColor& color() const { return m_color; }
double alpha() const { return m_alpha; }
private:
- QColor m_color;
+ TQColor m_color;
double m_alpha;
};
@@ -232,32 +232,33 @@ class KisGradientSegment {
class KisGradient : public KisResource {
typedef KisResource super;
Q_OBJECT
+ TQ_OBJECT
public:
- KisGradient(const QString& file);
+ KisGradient(const TQString& file);
virtual ~KisGradient();
virtual bool load();
virtual bool save();
- virtual QImage img();
- virtual QImage generatePreview(int width, int height) const;
+ virtual TQImage img();
+ virtual TQImage generatePreview(int width, int height) const;
- void colorAt(double t, QColor *color, Q_UINT8 *opacity) const;
+ void colorAt(double t, TQColor *color, TQ_UINT8 *opacity) const;
KisGradientSegment *segmentAt(double t) const;
protected:
inline void pushSegment( KisGradientSegment* segment ) { m_segments.push_back(segment); };
- void setImage(const QImage& img);
+ void setImage(const TQImage& img);
- QValueVector<KisGradientSegment *> m_segments;
+ TQValueVector<KisGradientSegment *> m_segments;
private:
bool init();
private:
- QByteArray m_data;
- QImage m_img;
+ TQByteArray m_data;
+ TQImage m_img;
};
#endif // KIS_GRADIENT_H