diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /kalarm/lib/colourcombo.h | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kalarm/lib/colourcombo.h')
-rw-r--r-- | kalarm/lib/colourcombo.h | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/kalarm/lib/colourcombo.h b/kalarm/lib/colourcombo.h index f3e4ebca6..b05f78823 100644 --- a/kalarm/lib/colourcombo.h +++ b/kalarm/lib/colourcombo.h @@ -21,7 +21,7 @@ #ifndef COLOURCOMBO_H #define COLOURCOMBO_H -#include <qcombobox.h> +#include <tqcombobox.h> #include "colourlist.h" @@ -43,22 +43,22 @@ class ColourCombo : public QComboBox { Q_OBJECT - Q_PROPERTY(QColor color READ color WRITE setColor) + Q_PROPERTY(TQColor color READ color WRITE setColor) public: /** Constructor. * @param parent The parent object of this widget. * @param name The name of this widget. * @param defaultColour The colour which is selected by default. */ - explicit ColourCombo(QWidget* parent = 0, const char* name = 0, const QColor& defaultColour = 0xFFFFFF); + explicit ColourCombo(TQWidget* parent = 0, const char* name = 0, const TQColor& defaultColour = 0xFFFFFF); /** Returns the selected colour. */ - QColor color() const { return mSelectedColour; } + TQColor color() const { return mSelectedColour; } /** Returns the selected colour. */ - QColor colour() const { return mSelectedColour; } + TQColor colour() const { return mSelectedColour; } /** Sets the selected colour to @p c. */ - void setColor(const QColor& c) { setColour(c); } + void setColor(const TQColor& c) { setColour(c); } /** Sets the selected colour to @p c. */ - void setColour(const QColor& c); + void setColour(const TQColor& c); /** Initialises the list of colours to @p list. */ void setColours(const ColourList& list); /** Returns true if the first entry in the list, i.e. the custom colour, is selected. */ @@ -71,30 +71,30 @@ class ColourCombo : public QComboBox virtual void setReadOnly(bool readOnly); signals: /** Signal emitted when a new colour has been selected. */ - void activated(const QColor&); // a new colour box has been selected + void activated(const TQColor&); // a new colour box has been selected /** Signal emitted when a new colour has been highlighted. */ - void highlighted(const QColor&); // a new item has been highlighted + void highlighted(const TQColor&); // a new item has been highlighted public slots: /** Enables or disables the widget. */ virtual void setEnabled(bool enabled); protected: - virtual void resizeEvent(QResizeEvent*); - virtual void mousePressEvent(QMouseEvent*); - virtual void mouseReleaseEvent(QMouseEvent*); - virtual void mouseMoveEvent(QMouseEvent*); - virtual void keyPressEvent(QKeyEvent*); - virtual void keyReleaseEvent(QKeyEvent*); + virtual void resizeEvent(TQResizeEvent*); + virtual void mousePressEvent(TQMouseEvent*); + virtual void mouseReleaseEvent(TQMouseEvent*); + virtual void mouseMoveEvent(TQMouseEvent*); + virtual void keyPressEvent(TQKeyEvent*); + virtual void keyReleaseEvent(TQKeyEvent*); private slots: void slotActivated(int index); void slotHighlighted(int index); void slotPreferencesChanged(); private: void addColours(); - void drawCustomItem(QRect&, bool insert); + void drawCustomItem(TQRect&, bool insert); ColourList mColourList; // the sorted colours to display - QColor mSelectedColour; // currently selected colour - QColor mCustomColour; // current colour of the Custom item + TQColor mSelectedColour; // currently selected colour + TQColor mCustomColour; // current colour of the Custom item bool mReadOnly; // value cannot be changed bool mDisabled; }; |