#include <color_combobox.h>
Signals | |
void | colorChangedSignal (const QString &color) |
Public Member Functions | |
ColorComboBox (QWidget *parent=nullptr, const char *name=nullptr) | |
ColorComboBox (int width, int height, QWidget *parent=nullptr, const char *name=nullptr) | |
virtual | ~ColorComboBox () |
QString | getColor () const |
void | setColor (const QString &color) |
void | setItems (QMap< QString, QString > map) |
int | getIconWidth () |
int | getIconHeight () |
Private Slots | |
void | colorChanged (int index) |
Private Member Functions | |
void | init () |
Private Attributes | |
QString | m_currentColor |
int | m_iconWidth |
int | m_iconHeight |
A comboBox for choosing a color.
Definition at line 16 of file color_combobox.h.
ColorComboBox::ColorComboBox | ( | QWidget * | parent = nullptr , |
const char * | name = nullptr |
||
) |
Definition at line 21 of file color_combobox.cpp.
ColorComboBox::ColorComboBox | ( | int | width, |
int | height, | ||
QWidget * | parent = nullptr , |
||
const char * | name = nullptr |
||
) |
Definition at line 35 of file color_combobox.cpp.
References init().
|
virtual |
Destructor
Definition at line 50 of file color_combobox.cpp.
|
privateslot |
Definition at line 115 of file color_combobox.cpp.
References colorChangedSignal(), and m_currentColor.
Referenced by init(), setColor(), and setItems().
|
signal |
Referenced by colorChanged().
QString ColorComboBox::getColor | ( | ) | const |
Definition at line 128 of file color_combobox.cpp.
References m_currentColor.
int ColorComboBox::getIconHeight | ( | ) |
Definition at line 138 of file color_combobox.cpp.
References m_iconHeight.
int ColorComboBox::getIconWidth | ( | ) |
Definition at line 133 of file color_combobox.cpp.
References m_iconWidth.
|
private |
Definition at line 55 of file color_combobox.cpp.
References colorChanged(), VAbstractTool::ColorsList(), and setItems().
Referenced by ColorComboBox().
void ColorComboBox::setColor | ( | const QString & | color | ) |
Definition at line 98 of file color_combobox.cpp.
References colorChanged(), and m_currentColor.
void ColorComboBox::setItems | ( | QMap< QString, QString > | map | ) |
Definition at line 64 of file color_combobox.cpp.
References ColorByGroup, colorChanged(), VAbstractTool::createColorIcon(), m_iconHeight, and m_iconWidth.
Referenced by init().
|
private |
Definition at line 39 of file color_combobox.h.
Referenced by colorChanged(), getColor(), and setColor().
|
private |
Definition at line 41 of file color_combobox.h.
Referenced by getIconHeight(), and setItems().
|
private |
Definition at line 40 of file color_combobox.h.
Referenced by getIconWidth(), and setItems().