OColorPopupMenu Class Reference
The OColorPopupMenu class provides a small color selection popup menu. More...
#include <colorpopupmenu.h>
Inheritance diagram for OColorPopupMenu:


Signals | |
| void | colorSelected (const QColor &color) |
| Signal to indicate color chosen from the menu. | |
Public Member Functions | |
| OColorPopupMenu (const QColor &color, QWidget *parent=0, const char *name=0) | |
| Object constructor. | |
| ~OColorPopupMenu () | |
| Object destructor. | |
Protected Slots | |
| void | buttonSelected (const QColor &color) |
| Slot to process selected color. | |
| void | moreColorClicked () |
| Slot to process display color selection dialog. | |
Detailed Description
The OColorPopupMenu class provides a small color selection popup menu.OColorPopupMenu is a derivation of TrollTech's QPopupMenu and provides a small color selection popup menu which can be attached to another control such as a toolbar button of menu item.
The popup menu displays 30 default colors available in a grid, and also includes an option at the bottom to display a color selection dialog box for finer color control.
Definition at line 165 of file colorpopupmenu.h.
Constructor & Destructor Documentation
|
||||||||||||||||
|
Object constructor.
Definition at line 95 of file colorpopupmenu.cpp. References QMenuData::activateItemAt(), QPopupMenu::insertItem(), QPopupMenu::insertSeparator(), moreColorClicked(), QWidget::QWidget(), and QObject::tr(). |
|
|
Object destructor.
Definition at line 149 of file colorpopupmenu.cpp. |
Member Function Documentation
|
|
Signal to indicate color chosen from the menu.
Referenced by buttonSelected(), and moreColorClicked(). |
|
|
Slot to process selected color.
Definition at line 160 of file colorpopupmenu.cpp. References colorSelected(), and QWidget::hide(). |
|
|
Slot to process display color selection dialog.
Definition at line 167 of file colorpopupmenu.cpp. References colorSelected(), and QWidget::hide(). Referenced by OColorPopupMenu(). |
The documentation for this class was generated from the following files:
