42 m_colorHistoryAction(0),
43 m_commonColorsAction(0),
46 m_horizontalPatchesContainer(0),
48 m_verticalColorPatchesLayout(0),
49 m_horizontalColorPatchesLayout(0),
50 m_fallbackSettingsButton(new QToolButton(this)),
53 setAutoFillBackground(
true);
181 KConfigGroup cfg = KSharedConfig::openConfig()->group(
"advancedColorSelector");
183 bool showColorSelector = (bool) cfg.readEntry(
"showColorSelector",
true);
186 bool m_lastColorsShow = cfg.readEntry(
"lastUsedColorsShow",
true);
188 if(cfg.readEntry(
"lastUsedColorsAlignment",
false))
193 bool m_commonColorsShow = cfg.readEntry(
"commonColorsShow",
true);
195 if(cfg.readEntry(
"commonColorsAlignment",
false))
208 if (m_lastColorsShow ==
false) {
214 if(m_commonColorsShow==
false) {
222 bool fallbackSettingsButtonVertical =
true;
234 fallbackSettingsButtonVertical =
false;
239 fallbackSettingsButtonVertical =
false;
243 if (m_commonColorsDirection != m_lastColorsDirection) {
244 fallbackSettingsButtonVertical =
true;
247 if (!showColorSelector) {
248 if (fallbackSettingsButtonVertical) {
void setCanvas(KisCanvas2 *canvas) override
void unsetCanvas() override