Commit 02c303b3 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Improve rendering speed of the Visual Color Selector

* Convert all colors for the colorselector to a QImage in one go

CCBUG:372221
parent 2ad95695
......@@ -421,7 +421,7 @@ void KisVisualColorSelector::resizeEvent(QResizeEvent *) {
void KisVisualColorSelector::HSXwrangler()
{
qDebug() << this << "HSXWrangler";
//qDebug() << this << "HSXWrangler";
QVector<qreal> currentCoordinates = QVector<qreal>(3);
......
......@@ -188,14 +188,14 @@ public Q_SLOTS:
* for updating from the display renderer... not sure why this one is public.
*/
void updateFromChangedDisplayRenderer();
protected:
void mousePressEvent(QMouseEvent *e);
void mouseMoveEvent(QMouseEvent *e);
void mouseReleaseEvent(QMouseEvent *e);
void paintEvent(QPaintEvent*);
private:
struct Private;
const QScopedPointer<Private> m_d;
......@@ -220,7 +220,7 @@ private:
void updateCursor();
QPointF convertKoColorToShapeCoordinate(KoColor c);
KoColor convertShapeCoordinateToKoColor(QPointF coordinates, bool cursor=false);
KoColor convertShapeCoordinateToKoColor(QPointF coordinates, bool cursor = false);
/**
* @brief getPixmap
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment