summaryrefslogtreecommitdiffstats
path: root/src/client/qwaylandscreen.cpp
diff options
context:
space:
mode:
authorTasuku Suzuki <tasuku.suzuki@qt.io>2017-01-13 20:19:17 +0900
committerTasuku Suzuki <tasuku.suzuki@qt.io>2017-01-13 14:25:20 +0000
commitcab7cb98d5b9530a3c265cc2436dd7d157e43f66 (patch)
treef17e25ec2bf58922fa83afc4e35c282fa0724a0e /src/client/qwaylandscreen.cpp
parent479a487066484809ebdf3c2c16b3c87c72870483 (diff)
Fix build without feature.cursor
Change-Id: If244e7ac58133ae6fbefacfa243d47fa210140be Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/client/qwaylandscreen.cpp')
-rw-r--r--src/client/qwaylandscreen.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/client/qwaylandscreen.cpp b/src/client/qwaylandscreen.cpp
index 5dbfe5e9d..31d21a1c3 100644
--- a/src/client/qwaylandscreen.cpp
+++ b/src/client/qwaylandscreen.cpp
@@ -64,18 +64,24 @@ QWaylandScreen::QWaylandScreen(QWaylandDisplay *waylandDisplay, int version, uin
, mFormat(QImage::Format_ARGB32_Premultiplied)
, mOutputName(QStringLiteral("Screen%1").arg(id))
, m_orientation(Qt::PrimaryOrientation)
+#if QT_CONFIG(cursor)
, mWaylandCursor(0)
+#endif
{
}
QWaylandScreen::~QWaylandScreen()
{
+#if QT_CONFIG(cursor)
delete mWaylandCursor;
+#endif
}
void QWaylandScreen::init()
{
+#if QT_CONFIG(cursor)
mWaylandCursor = new QWaylandCursor(this);
+#endif
}
QWaylandDisplay * QWaylandScreen::display() const
@@ -156,10 +162,12 @@ qreal QWaylandScreen::refreshRate() const
return mRefreshRate / 1000.f;
}
+#if QT_CONFIG(cursor)
QPlatformCursor *QWaylandScreen::cursor() const
{
return mWaylandCursor;
}
+#endif
QWaylandScreen * QWaylandScreen::waylandScreenFromWindow(QWindow *window)
{