#include <fill_combobox.h>
Signals | |
void | fillChangedSignal (const QString &fill) |
Public Member Functions | |
PieceFillComboBox (QWidget *parent=nullptr, const char *name=nullptr) | |
PieceFillComboBox (int width, int height, QWidget *parent=nullptr, const char *name=nullptr) | |
virtual | ~PieceFillComboBox () |
QString | getFill () const |
void | setFill (const QString &fill) |
QPixmap | createFillIcon (const int w, const int h, Qt::BrushStyle style) |
int | getIconWidth () |
int | getIconHeight () |
Private Slots | |
void | fillChanged (int index) |
Private Member Functions | |
void | init () |
Private Attributes | |
QString | m_currentFill |
int | m_iconWidth |
int | m_iconHeight |
A comboBox for choosing a fill pattern.
Definition at line 35 of file fill_combobox.h.
PieceFillComboBox::PieceFillComboBox | ( | QWidget * | parent = nullptr , |
const char * | name = nullptr |
||
) |
Definition at line 41 of file fill_combobox.cpp.
PieceFillComboBox::PieceFillComboBox | ( | int | width, |
int | height, | ||
QWidget * | parent = nullptr , |
||
const char * | name = nullptr |
||
) |
Definition at line 56 of file fill_combobox.cpp.
References init().
|
virtual |
Destructor
Definition at line 70 of file fill_combobox.cpp.
QPixmap PieceFillComboBox::createFillIcon | ( | const int | w, |
const int | h, | ||
Qt::BrushStyle | style | ||
) |
Definition at line 135 of file fill_combobox.cpp.
Referenced by init().
|
privateslot |
Definition at line 151 of file fill_combobox.cpp.
References fillChangedSignal(), and m_currentFill.
|
signal |
Referenced by fillChanged().
QString PieceFillComboBox::getFill | ( | ) | const |
Definition at line 129 of file fill_combobox.cpp.
References m_currentFill.
int PieceFillComboBox::getIconHeight | ( | ) |
Definition at line 167 of file fill_combobox.cpp.
References m_iconHeight.
int PieceFillComboBox::getIconWidth | ( | ) |
Definition at line 162 of file fill_combobox.cpp.
References m_iconWidth.
|
private |
Definition at line 75 of file fill_combobox.cpp.
References createFillIcon(), FillBackwardDiagonal, fillChanged(), FillCross, FilldDiagonalCross, FillDense1, FillDense2, FillDense3, FillDense4, FillDense5, FillDense6, FillDense7, FillForwardDiagonal, FillHorizLines, FillNone, FillSolid, FillVertLines, m_iconHeight, and m_iconWidth.
Referenced by PieceFillComboBox().
void PieceFillComboBox::setFill | ( | const QString & | fill | ) |
Definition at line 117 of file fill_combobox.cpp.
References fillChanged(), and m_currentFill.
|
private |
Definition at line 60 of file fill_combobox.h.
Referenced by fillChanged(), getFill(), and setFill().
|
private |
Definition at line 62 of file fill_combobox.h.
Referenced by getIconHeight(), and init().
|
private |
Definition at line 61 of file fill_combobox.h.
Referenced by getIconWidth(), and init().