From 873b4ed717e430131bb56f374cc7d6db33a2d827 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Fri, 11 Sep 2015 14:53:34 +0200 Subject: [PATCH] Fix build with some compilers If it's a QPointer the connect needs a .data() --- backends/drm/drm_backend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backends/drm/drm_backend.cpp b/backends/drm/drm_backend.cpp index 9f24f0ecad..ebc2f3722a 100644 --- a/backends/drm/drm_backend.cpp +++ b/backends/drm/drm_backend.cpp @@ -721,7 +721,7 @@ void DrmOutput::init(drmModeConnector *connector) if (!m_dpms.isNull()) { m_waylandOutput->setDpmsSupported(true); m_waylandOutput->setDpmsMode(toWaylandDpmsMode(m_dpmsMode)); - connect(m_waylandOutput, &KWayland::Server::OutputInterface::dpmsModeRequested, this, + connect(m_waylandOutput.data(), &KWayland::Server::OutputInterface::dpmsModeRequested, this, [this] (KWayland::Server::OutputInterface::DpmsMode mode) { setDpms(fromWaylandDpmsMode(mode)); }, Qt::QueuedConnection