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 /lib/kopainter/ko_rgb_widget.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 'lib/kopainter/ko_rgb_widget.h')
-rw-r--r-- | lib/kopainter/ko_rgb_widget.h | 49 |
1 files changed, 25 insertions, 24 deletions
diff --git a/lib/kopainter/ko_rgb_widget.h b/lib/kopainter/ko_rgb_widget.h index ab18c8a5..c7d657a4 100644 --- a/lib/kopainter/ko_rgb_widget.h +++ b/lib/kopainter/ko_rgb_widget.h @@ -19,37 +19,38 @@ #ifndef KO_RGB_WIDGET_H #define KO_RGB_WIDGET_H -#include "qwidget.h" +#include "tqwidget.h" #include <koffice_export.h> #include <kdualcolorbutton.h> class KoFrameButton; -class QGridLayout; -class QColor; +class TQGridLayout; +class TQColor; class KoColorSlider; -class QLabel; -class QSpinBox; +class TQLabel; +class TQSpinBox; class KDualColorButton; class KoColorSlider; -class QColor; +class TQColor; class KoRGBWidget - : public QWidget + : public TQWidget { Q_OBJECT - typedef QWidget super; + TQ_OBJECT + typedef TQWidget super; public: - KoRGBWidget(QWidget *parent = 0L, const char *name = 0); + KoRGBWidget(TQWidget *tqparent = 0L, const char *name = 0); virtual ~KoRGBWidget() {} 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); /// Sets the current mode (foreground/background) without emitting the signal virtual void setMode(KDualColorButton::DualColor); @@ -58,8 +59,8 @@ 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); /// Emitted when the mode (foreground/background) was changed virtual void sigModeChanged(KDualColorButton::DualColor); @@ -70,29 +71,29 @@ protected slots: virtual void slotGChanged(int g); virtual void slotBChanged(int b); - void slotFGColorSelected(const QColor& c); - void slotBGColorSelected(const QColor& c); + void slotFGColorSelected(const TQColor& c); + void slotBGColorSelected(const TQColor& c); void currentChanged(KDualColorButton::DualColor); private: - void update(const QColor fgColor, const QColor); + void update(const TQColor fgColor, const TQColor); private: KoColorSlider *mRSlider; KoColorSlider *mGSlider; KoColorSlider *mBSlider; - QLabel *mRLabel; - QLabel *mGLabel; - QLabel *mBLabel; - QSpinBox *mRIn; - QSpinBox *mGIn; - QSpinBox *mBIn; + TQLabel *mRLabel; + TQLabel *mGLabel; + TQLabel *mBLabel; + TQSpinBox *mRIn; + TQSpinBox *mGIn; + TQSpinBox *mBIn; KDualColorButton *m_ColorButton; - QColor m_fgColor; - QColor m_bgColor; + TQColor m_fgColor; + TQColor m_bgColor; }; #endif |