summaryrefslogtreecommitdiffstats
path: root/lib/kopainter/ko_cmyk_widget.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kopainter/ko_cmyk_widget.h')
-rw-r--r--lib/kopainter/ko_cmyk_widget.h55
1 files changed, 28 insertions, 27 deletions
diff --git a/lib/kopainter/ko_cmyk_widget.h b/lib/kopainter/ko_cmyk_widget.h
index 5cb00b7a..b65f6645 100644
--- a/lib/kopainter/ko_cmyk_widget.h
+++ b/lib/kopainter/ko_cmyk_widget.h
@@ -20,16 +20,16 @@
#ifndef KO_CMYK_WIDGET_H
#define KO_CMYK_WIDGET_H
-#include "qwidget.h"
+#include "tqwidget.h"
#include <koffice_export.h>
class KoFrameButton;
-class QGridLayout;
-class QColor;
+class TQGridLayout;
+class TQColor;
class KoColorSlider;
-class QLabel;
-class QSpinBox;
+class TQLabel;
+class TQSpinBox;
class KDualColorButton;
struct CMYKColor
@@ -41,29 +41,30 @@ struct CMYKColor
};
class KoCMYKWidget
- : public QWidget
+ : public TQWidget
{
Q_OBJECT
- typedef QWidget super;
+ TQ_OBJECT
+ typedef TQWidget super;
public:
- KoCMYKWidget(QWidget *parent = 0L, const char *name = 0);
+ KoCMYKWidget(TQWidget *tqparent = 0L, const char *name = 0);
virtual ~KoCMYKWidget() {}
public slots:
/**
* Set the current color to c. Do not emit the color changed signals
*/
- virtual void setFgColor(const QColor & c);
- virtual void setBgColor(const QColor & c);
+ virtual void setFgColor(const TQColor & c);
+ virtual void setBgColor(const TQColor & c);
signals:
/**
* Emitted when the current color is changed.
*/
- virtual void sigFgColorChanged(const QColor & c);
- virtual void sigBgColorChanged(const QColor & c);
+ virtual void sigFgColorChanged(const TQColor & c);
+ virtual void sigBgColorChanged(const TQColor & c);
protected slots:
@@ -73,15 +74,15 @@ protected slots:
virtual void slotYChanged(int y);
virtual void slotKChanged(int k);
- void slotFGColorSelected(const QColor& c);
- void slotBGColorSelected(const QColor& c);
+ void slotFGColorSelected(const TQColor& c);
+ void slotBGColorSelected(const TQColor& c);
private:
- void update(const QColor fgColor, const QColor);
+ void update(const TQColor fgColor, const TQColor);
- CMYKColor RgbToCmyk(const QColor& col);
- QColor CmykToRgb(const CMYKColor& c);
+ CMYKColor RgbToCmyk(const TQColor& col);
+ TQColor CmykToRgb(const CMYKColor& c);
private:
@@ -89,14 +90,14 @@ private:
KoColorSlider *mMSlider;
KoColorSlider *mYSlider;
KoColorSlider *mKSlider;
- QLabel *mCLabel;
- QLabel *mMLabel;
- QLabel *mYLabel;
- QLabel *mKLabel;
- QSpinBox *mCIn;
- QSpinBox *mMIn;
- QSpinBox *mYIn;
- QSpinBox *mKIn;
+ TQLabel *mCLabel;
+ TQLabel *mMLabel;
+ TQLabel *mYLabel;
+ TQLabel *mKLabel;
+ TQSpinBox *mCIn;
+ TQSpinBox *mMIn;
+ TQSpinBox *mYIn;
+ TQSpinBox *mKIn;
KDualColorButton *m_ColorButton;
float m_fgC;
@@ -109,8 +110,8 @@ private:
float m_bgY;
float m_bgK;
- QColor m_fgColor;
- QColor m_bgColor;
+ TQColor m_fgColor;
+ TQColor m_bgColor;
};
#endif