Differential D20680 Diff 56579 plugins/dockers/advancedcolorselector/kis_shade_selector_line_combo_box_popup.cpp
Changeset View
Changeset View
Standalone View
Standalone View
plugins/dockers/advancedcolorselector/kis_shade_selector_line_combo_box_popup.cpp
Context not available. | |||||
57 | layout->addWidget(new KisShadeSelectorLine(0.0, 0.5, 0.5, m_parentProxy.data(), this, -0.04)); | 57 | layout->addWidget(new KisShadeSelectorLine(0.0, 0.5, 0.5, m_parentProxy.data(), this, -0.04)); | ||
---|---|---|---|---|---|
58 | layout->addWidget(new KisShadeSelectorLine(0.0, 0.5, 0.5, m_parentProxy.data(), this, +0.04)); | 58 | layout->addWidget(new KisShadeSelectorLine(0.0, 0.5, 0.5, m_parentProxy.data(), this, +0.04)); | ||
59 | layout->addWidget(new KisShadeSelectorLine(0.0, -0.5, 0.5, m_parentProxy.data(), this, -0.04)); | 59 | layout->addWidget(new KisShadeSelectorLine(0.0, -0.5, 0.5, m_parentProxy.data(), this, -0.04)); | ||
60 | layout->addWidget(new KisShadeSelectorLine(0.0, -0.5, 0.5, m_parentProxy.data(), this, +0.04)); | | |||
61 | 60 | | |||
62 | m_lineEditor = new KisShadeSelectorLineEditor(this); | 61 | KisShadeSelectorLine* preview = new KisShadeSelectorLine(0.0, -0.5, 0.5, m_parentProxy.data(), this, +0.04); | ||
62 | m_lineEditor = new KisShadeSelectorLineEditor(this, preview); | ||||
63 | layout->addWidget(preview); | ||||
63 | layout->addWidget(m_lineEditor); | 64 | layout->addWidget(m_lineEditor); | ||
64 | 65 | | |||
65 | connect(m_lineEditor, SIGNAL(requestActivateLine(QWidget*)), SLOT(activateItem(QWidget*))); | 66 | connect(m_lineEditor, SIGNAL(requestActivateLine(QWidget*)), SLOT(activateItem(QWidget*))); | ||
Context not available. | |||||
155 | m_lineEditor->fromString(m_lastSelectedItem->toString()); | 156 | m_lineEditor->fromString(m_lastSelectedItem->toString()); | ||
156 | m_lineEditor->blockSignals(false); | 157 | m_lineEditor->blockSignals(false); | ||
157 | } | 158 | } | ||
158 | | ||||
159 | updateSelectedArea(m_highlightedArea); | 159 | updateSelectedArea(m_highlightedArea); | ||
160 | } else { | 160 | } | ||
161 | if (m_lastSelectedItem) { | 161 | if (m_lastSelectedItem) { | ||
162 | KisShadeSelectorLineComboBox *parent = dynamic_cast<KisShadeSelectorLineComboBox*>(this->parent()); | 162 | KisShadeSelectorLineComboBox *parent = dynamic_cast<KisShadeSelectorLineComboBox*>(this->parent()); | ||
163 | Q_ASSERT(parent); | 163 | Q_ASSERT(parent); | ||
164 | parent->setConfiguration(m_lastSelectedItem->toString()); | 164 | parent->setConfiguration(m_lastSelectedItem->toString()); | ||
165 | } | | |||
166 | hide(); | | |||
167 | } | 165 | } | ||
168 | e->accept(); | 166 | e->accept(); | ||
167 | | ||||
168 | this->parentWidget()->update(); | ||||
169 | hide(); | ||||
169 | } | 170 | } | ||
170 | 171 | | |||
Context not available. |