Fix build with some compilers

If it's a QPointer the connect needs a .data()
This commit is contained in:
Martin Gräßlin 2015-09-11 14:53:34 +02:00
parent 43f6c1e041
commit 873b4ed717

View file

@ -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