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_gray_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_gray_widget.h')
-rw-r--r-- | lib/kopainter/ko_gray_widget.h | 39 |
1 files changed, 20 insertions, 19 deletions
diff --git a/lib/kopainter/ko_gray_widget.h b/lib/kopainter/ko_gray_widget.h index 818932c5..6f950201 100644 --- a/lib/kopainter/ko_gray_widget.h +++ b/lib/kopainter/ko_gray_widget.h @@ -19,62 +19,63 @@ #ifndef KO_GRAY_WIDGET_H #define KO_GRAY_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 KoGrayWidget - : public QWidget + : public TQWidget { Q_OBJECT - typedef QWidget super; + TQ_OBJECT + typedef TQWidget super; public: - KoGrayWidget(QWidget *parent = 0L, const char *name = 0); + KoGrayWidget(TQWidget *tqparent = 0L, const char *name = 0); virtual ~KoGrayWidget() {} 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: virtual void slotChanged(int v); - 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 & bgColor); + void update(const TQColor & fgColor, const TQColor & bgColor); KoColorSlider *mSlider; - QLabel *mLabel; - QSpinBox *mIn; + TQLabel *mLabel; + TQSpinBox *mIn; KDualColorButton *m_ColorButton; - QColor m_fgColor; - QColor m_bgColor; + TQColor m_fgColor; + TQColor m_bgColor; }; #endif |