Skip to content

Commit 3d6ffb7

Browse files
committed
fix compile error not on Linux
1 parent f0f5f18 commit 3d6ffb7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/qmltypes/colorpickeritem.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,11 @@ ColorPickerItem::ColorPickerItem(QObject *parent)
5151
void ColorPickerItem::screenSelected(const QRect &rect)
5252
{
5353
m_selectedRect = rect;
54+
#ifdef Q_OS_LINUX
5455
if (m_selector.useDBus())
5556
QTimer::singleShot(0, this, &ColorPickerItem::grabColorDBus);
5657
else
58+
#endif
5759
// Give the frame buffer time to clear the selector window before
5860
// grabbing the color.
5961
QTimer::singleShot(200, this, &ColorPickerItem::grabColor);

0 commit comments

Comments
 (0)