]> git.sesse.net Git - kdenlive/commitdiff
Use Icon color-picker as cursor for color picker
authorTill Theato <root@ttill.de>
Sat, 31 Jul 2010 10:13:24 +0000 (10:13 +0000)
committerTill Theato <root@ttill.de>
Sat, 31 Jul 2010 10:13:24 +0000 (10:13 +0000)
svn path=/trunk/kdenlive/; revision=4667

src/colorpickerwidget.cpp

index a2a54e87edfb42e6cccfad84491aaad0c8ed2812..8b7bc2d4bf2c36e8b9066714c52ea1affbb1d304 100644 (file)
@@ -88,7 +88,7 @@ void ColorPickerWidget::mouseReleaseEvent(QMouseEvent *event)
         closeEventFilter();
         // does not work this way
         //if (event->button() == Qt::LeftButton)
-        emit colorPicked(KColorDialog::grabColor(event->globalPos()));
+        emit colorPicked(KColorDialog::grabColor(event->globalPos() - QPoint(11, -10)));
         return;
     }
     QWidget::mouseReleaseEvent(event);
@@ -113,7 +113,7 @@ void ColorPickerWidget::slotSetupEventFilter()
     m_filter = new KCDPickerFilter(this);
     kapp->installX11EventFilter(m_filter);
 #endif
-    grabMouse(Qt::CrossCursor);
+    grabMouse(QCursor(KIcon("color-picker").pixmap(22, 22)));
     grabKeyboard();
 }