Commit 27d4034e authored by Wolthera van Hövell's avatar Wolthera van Hövell 🛍

Fix screencolor picker label.

Ref T2438
parent 29d34d88
...@@ -157,10 +157,9 @@ void KisScreenColorPicker::updateColorLabelText(const QPoint &globalPos) ...@@ -157,10 +157,9 @@ void KisScreenColorPicker::updateColorLabelText(const QPoint &globalPos)
{ {
KoColor col = grabScreenColor(globalPos); KoColor col = grabScreenColor(globalPos);
QString colname = KoColor::toQString(col); QString colname = KoColor::toQString(col);
m_d->lblScreenColorInfo->setText(tr("Cursor at %1 , %2, color: %3 \nPress ESC to cancel") QString location = QString::number(globalPos.x())+QString(", ")+QString::number(globalPos.y());
.arg(globalPos.x()) m_d->lblScreenColorInfo->setWordWrap(true);
.arg(globalPos.y()) m_d->lblScreenColorInfo->setText(location+QString(": ")+colname);
.arg(colname));
} }
bool KisScreenColorPicker::handleColorPickingMouseMove(QMouseEvent *e) bool KisScreenColorPicker::handleColorPickingMouseMove(QMouseEvent *e)
......
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