summaryrefslogtreecommitdiffstats
path: root/kalarm/lib/colourcombo.h
diff options
context:
space:
mode:
Diffstat (limited to 'kalarm/lib/colourcombo.h')
-rw-r--r--kalarm/lib/colourcombo.h36
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;
};