Changeset View
Changeset View
Standalone View
Standalone View
src/server/outputconfiguration_interface.cpp
Show First 20 Lines • Show All 281 Lines • ▼ Show 20 Line(s) | |||||
282 | { | 282 | { | ||
283 | Q_D(); | 283 | Q_D(); | ||
284 | d->clearPendingChanges(); | 284 | d->clearPendingChanges(); | ||
285 | d->sendApplied(); | 285 | d->sendApplied(); | ||
286 | } | 286 | } | ||
287 | 287 | | |||
288 | void OutputConfigurationInterface::Private::sendApplied() | 288 | void OutputConfigurationInterface::Private::sendApplied() | ||
289 | { | 289 | { | ||
290 | if (!resource) { | ||||
291 | return; | ||||
292 | } | ||||
290 | org_kde_kwin_outputconfiguration_send_applied(resource); | 293 | org_kde_kwin_outputconfiguration_send_applied(resource); | ||
291 | } | 294 | } | ||
292 | 295 | | |||
293 | void OutputConfigurationInterface::setFailed() | 296 | void OutputConfigurationInterface::setFailed() | ||
294 | { | 297 | { | ||
295 | Q_D(); | 298 | Q_D(); | ||
296 | d->clearPendingChanges(); | 299 | d->clearPendingChanges(); | ||
297 | d->sendFailed(); | 300 | d->sendFailed(); | ||
298 | } | 301 | } | ||
299 | 302 | | |||
300 | void OutputConfigurationInterface::Private::sendFailed() | 303 | void OutputConfigurationInterface::Private::sendFailed() | ||
301 | { | 304 | { | ||
305 | if (!resource) { | ||||
306 | return; | ||||
307 | } | ||||
302 | org_kde_kwin_outputconfiguration_send_failed(resource); | 308 | org_kde_kwin_outputconfiguration_send_failed(resource); | ||
303 | } | 309 | } | ||
304 | 310 | | |||
305 | OutputChangeSet* OutputConfigurationInterface::Private::pendingChanges(OutputDeviceInterface *outputdevice) | 311 | OutputChangeSet* OutputConfigurationInterface::Private::pendingChanges(OutputDeviceInterface *outputdevice) | ||
306 | { | 312 | { | ||
307 | if (!changes.keys().contains(outputdevice)) { | 313 | if (!changes.keys().contains(outputdevice)) { | ||
308 | changes[outputdevice] = new OutputChangeSet(outputdevice, q); | 314 | changes[outputdevice] = new OutputChangeSet(outputdevice, q); | ||
309 | } | 315 | } | ||
Show All 25 Lines |