#include <color_dialog.hpp>
Enumerator |
---|
OkCancel |
|
OkApplyCancel |
|
Close |
|
Color_Dialog::Color_Dialog |
( |
QWidget * |
parent = 0 , |
|
|
Qt::WindowFlags |
f = 0 |
|
) |
| |
|
explicit |
bool Color_Dialog::alphaEnabled |
( |
| ) |
const |
QColor Color_Dialog::color |
( |
| ) |
const |
Get currently selected color
void Color_Dialog::colorChanged |
( |
QColor |
| ) |
|
|
signal |
The current color was changed
void Color_Dialog::colorSelected |
( |
QColor |
| ) |
|
|
signal |
The user selected the new color by pressing Ok/Apply
void Color_Dialog::dragEnterEvent |
( |
QDragEnterEvent * |
event | ) |
|
|
protected |
void Color_Dialog::dropEvent |
( |
QDropEvent * |
event | ) |
|
|
protected |
void Color_Dialog::mouseMoveEvent |
( |
QMouseEvent * |
event | ) |
|
|
protected |
void Color_Dialog::mouseReleaseEvent |
( |
QMouseEvent * |
event | ) |
|
|
protected |
Get the color preview diplay mode
void Color_Dialog::setAlphaEnabled |
( |
bool |
a | ) |
|
Set whether the color alpha channel can be edited. If alpha is disabled, the selected color's alpha will always be 255.
Select which dialog buttons to show
There are three predefined modes: OkCancel - this is useful when the dialog is modal and we just want to return a color OkCancelApply - this is for non-modal dialogs Close - for non-modal dialogs with direct color updates via colorChanged signal
void Color_Dialog::setColor |
( |
const QColor & |
c | ) |
|
|
slot |
Set the display mode for the color preview
void Color_Dialog::setWheelFlags |
( |
Color_Wheel::Display_Flags |
flags | ) |
|
|
slot |
void Color_Dialog::showColor |
( |
const QColor & |
oldcolor | ) |
|
|
slot |
Set the current color and show the dialog
QSize Color_Dialog::sizeHint |
( |
| ) |
const |
Color_Wheel::Display_Flags Color_Dialog::wheelFlags |
( |
| ) |
const |
void Color_Dialog::wheelFlagsChanged |
( |
Color_Wheel::Display_Flags |
flags | ) |
|
|
signal |
QColor Color_Dialog::color |
|
readwrite |
Color_Wheel::Display_Flags Color_Dialog::wheelFlags |
|
readwrite |
The documentation for this class was generated from the following files:
- /home/travis/build/njazz/tilde/tilde~/properties/QtColorPicker/include/color_dialog.hpp
- /home/travis/build/njazz/tilde/tilde~/properties/QtColorPicker/src/color_dialog.cpp