ColourCombo Class Reference
A colour selection combo box whose colour list can be specified. More...
#include <colourcombo.h>
Inherits QComboBox.
Public Slots
- virtual void setEnabled (bool enabled)
Signals
- void activated (const QColor &)
- void highlighted (const QColor &)
Public Member Functions
- ColourCombo (QWidget *parent=0, const char *name=0, const QColor &defaultColour=0xFFFFFF)
- QColor color () const
- QColor colour () const
- void setColor (const QColor &c)
- void setColour (const QColor &c)
- void setColours (const ColourList &list)
- bool isCustomColour () const
- bool isReadOnly () const
- void setReadOnly (bool readOnly)
Protected Member Functions
- virtual void resizeEvent (QResizeEvent *)
- virtual void mousePressEvent (QMouseEvent *)
- virtual void mouseReleaseEvent (QMouseEvent *)
- virtual void mouseMoveEvent (QMouseEvent *)
- virtual void keyPressEvent (QKeyEvent *)
- virtual void keyReleaseEvent (QKeyEvent *)
Properties
Detailed Description
A colour selection combo box whose colour list can be specified.The ColourCombo class is a combo box allowing the user to select a colour.
It is similar to KColorCombo but allows the list of colours to be restricted to those which are specified. The first item in the list is a custom colour entry, which allows the user to define an arbitrary colour. The remaining entries in the list are preset by the program.
The widget may be set as read-only. This has the same effect as disabling it, except that its appearance is unchanged.
- Author:
- David Jarvie <software@astrojar.org.uk>
Constructor & Destructor Documentation
|
Constructor.
|
Member Function Documentation
|
Returns the selected colour.
|
|
Returns the selected colour.
|
|
Sets the selected colour to
|
|
Sets the selected colour to
|
|
Initialises the list of colours to
|
|
Returns true if the first entry in the list, i.e. the custom colour, is selected. |
|
Returns true if the widget is read only.
|
|
Sets whether the combo box can be changed by the user.
|
|
Signal emitted when a new colour has been selected.
|
|
Signal emitted when a new colour has been highlighted.
|
|
Enables or disables the widget.
|
The documentation for this class was generated from the following files:
- colourcombo.h
- colourcombo.cpp