#include <kis_shade_selector_line_combo_box_popup.h>
◆ ~KisShadeSelectorLineComboBoxPopup()
| KisShadeSelectorLineComboBoxPopup::~KisShadeSelectorLineComboBoxPopup |
( |
| ) |
|
|
override |
◆ KisShadeSelectorLineComboBoxPopup()
| KisShadeSelectorLineComboBoxPopup::KisShadeSelectorLineComboBoxPopup |
( |
QWidget * | parent | ) |
|
Definition at line 25 of file kis_shade_selector_line_combo_box_popup.cpp.
26 : QWidget(parent, Qt::Popup),
32{
33 setMouseTracking(true);
34
35 QVBoxLayout*
layout =
new QVBoxLayout(
this);
37
52
55 layout->addWidget(preview);
57
59
60 for(int i=0; i<this->layout()->count(); i++) {
62 if(item!=0) {
63 item->setMouseTracking(true);
64 item->setAttribute(Qt::WA_TransparentForMouseEvents);
69 }
70 }
71}
connect(this, SIGNAL(optionsChanged()), this, SLOT(saveOptions()))
void setColor(const KoColor &color)
void fromQColor(const QColor &c)
Convenient function for converting from a QColor.
References activateItem(), connect(), KoColor::fromQColor(), m_lineEditor, m_parentProxy, KisShadeSelectorLine::setColor(), KisShadeSelectorLine::showHelpText(), and spacing.
◆ activateItem
| void KisShadeSelectorLineComboBoxPopup::activateItem |
( |
QWidget * | widget | ) |
|
|
privateslot |
◆ mouseMoveEvent()
| void KisShadeSelectorLineComboBoxPopup::mouseMoveEvent |
( |
QMouseEvent * | e | ) |
|
|
overrideprivate |
◆ mousePressEvent()
| void KisShadeSelectorLineComboBoxPopup::mousePressEvent |
( |
QMouseEvent * | e | ) |
|
|
overrideprivate |
◆ paintEvent()
| void KisShadeSelectorLineComboBoxPopup::paintEvent |
( |
QPaintEvent * | | ) |
|
|
overrideprivate |
Definition at line 109 of file kis_shade_selector_line_combo_box_popup.cpp.
110{
111 QPainter painter(this);
113 KConfigGroup cfg = KSharedConfig::openConfig()->group("advancedColorSelector");
114
115 if (cfg.readEntry("useCustomColorForBackground", false)) {
116 p.fillRect(0,0,width(), height(), cfg.readEntry(
"customSelectorBackgroundColor", QColor(Qt::gray)));
117 } else {
118 p.fillRect(0,0,width(), height(), qApp->palette().window().color());
119 }
121
124}
rgba palette[MAX_PALETTE]
References m_highlightedArea, m_selectedArea, p, and palette.
◆ setConfiguration()
| void KisShadeSelectorLineComboBoxPopup::setConfiguration |
( |
const QString & | string | ) |
|
◆ updateHighlightedArea()
| void KisShadeSelectorLineComboBoxPopup::updateHighlightedArea |
( |
const QRect & | newRect | ) |
|
|
private |
◆ updateSelectedArea()
| void KisShadeSelectorLineComboBoxPopup::updateSelectedArea |
( |
const QRect & | newRect | ) |
|
|
private |
◆ m_highlightedArea
| QRect KisShadeSelectorLineComboBoxPopup::m_highlightedArea |
|
private |
◆ m_lastHighlightedItem
◆ m_lastSelectedItem
◆ m_lineEditor
◆ m_parentProxy
◆ m_selectedArea
| QRect KisShadeSelectorLineComboBoxPopup::m_selectedArea |
|
private |
◆ spacing
| const int KisShadeSelectorLineComboBoxPopup::spacing |
The documentation for this class was generated from the following files: