Changeset View
Changeset View
Standalone View
Standalone View
kded/daemon.cpp
Show First 20 Lines • Show All 373 Lines • ▼ Show 20 Line(s) | 373 | [this] (const KScreen::OutputPtr output) { | |||
---|---|---|---|---|---|
374 | if (output->isConnected()) { | 374 | if (output->isConnected()) { | ||
375 | m_changeCompressor->start(); | 375 | m_changeCompressor->start(); | ||
376 | } | 376 | } | ||
377 | connect(output.data(), &KScreen::Output::isConnectedChanged, | 377 | connect(output.data(), &KScreen::Output::isConnectedChanged, | ||
378 | this, &KScreenDaemon::outputConnectedChanged, | 378 | this, &KScreenDaemon::outputConnectedChanged, | ||
379 | Qt::UniqueConnection); | 379 | Qt::UniqueConnection); | ||
380 | }, Qt::UniqueConnection | 380 | }, Qt::UniqueConnection | ||
381 | ); | 381 | ); | ||
382 | connect(m_monitoredConfig.data(), &KScreen::Config::outputRemoved, | ||||
383 | this, &KScreenDaemon::applyConfig, | ||||
384 | static_cast<Qt::ConnectionType>(Qt::QueuedConnection | Qt::UniqueConnection)); | ||||
382 | } | 385 | } | ||
383 | 386 | | |||
384 | void KScreenDaemon::setMonitorForChanges(bool enabled) | 387 | void KScreenDaemon::setMonitorForChanges(bool enabled) | ||
385 | { | 388 | { | ||
386 | if (m_monitoring == enabled) { | 389 | if (m_monitoring == enabled) { | ||
387 | return; | 390 | return; | ||
388 | } | 391 | } | ||
389 | 392 | | |||
▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines |