Changeset View
Changeset View
Standalone View
Standalone View
plugins/dockers/advancedcolorselector/kis_color_selector.cpp
Show First 20 Lines • Show All 255 Lines • ▼ Show 20 Line(s) | 244 | else { | |||
---|---|---|---|---|---|
256 | else { | 256 | else { | ||
257 | int selectorWidth=width()-buttonSize; | 257 | int selectorWidth=width()-buttonSize; | ||
258 | m_mainComponent->setGeometry(buttonSize, height()*0.1, selectorWidth, height()*0.9); | 258 | m_mainComponent->setGeometry(buttonSize, height()*0.1, selectorWidth, height()*0.9); | ||
259 | m_subComponent->setGeometry( buttonSize, 0, selectorWidth, height()*0.1); | 259 | m_subComponent->setGeometry( buttonSize, 0, selectorWidth, height()*0.1); | ||
260 | } | 260 | } | ||
261 | } | 261 | } | ||
262 | } | 262 | } | ||
263 | 263 | | |||
264 | // reset the currect color after resizing the widget | 264 | // reset the correct color after resizing the widget | ||
265 | setColor(m_lastRealColor); | 265 | setColor(m_lastRealColor); | ||
266 | 266 | | |||
267 | KisColorSelectorBase::resizeEvent(e); | 267 | KisColorSelectorBase::resizeEvent(e); | ||
268 | } | 268 | } | ||
269 | 269 | | |||
270 | void KisColorSelector::mousePressEvent(QMouseEvent* e) | 270 | void KisColorSelector::mousePressEvent(QMouseEvent* e) | ||
271 | { | 271 | { | ||
272 | e->setAccepted(false); | 272 | e->setAccepted(false); | ||
▲ Show 20 Lines • Show All 94 Lines • Show Last 20 Lines |