Changeset View
Changeset View
Standalone View
Standalone View
kcm/kcm.cpp
Show First 20 Lines • Show All 383 Lines • ▼ Show 20 Line(s) | |||||
384 | void KCMKScreen::setOutputRetention(int retention) | 384 | void KCMKScreen::setOutputRetention(int retention) | ||
385 | { | 385 | { | ||
386 | if (!m_config) { | 386 | if (!m_config) { | ||
387 | return; | 387 | return; | ||
388 | } | 388 | } | ||
389 | return m_config->setRetention(retention); | 389 | return m_config->setRetention(retention); | ||
390 | } | 390 | } | ||
391 | 391 | | |||
392 | int KCMKScreen::numberOfOutputs() const | ||||
393 | { | ||||
394 | if (!m_config) { | ||||
395 | return -1; | ||||
396 | } | ||||
397 | return m_config->outputModel()->rowCount(); | ||||
398 | } | ||||
399 | | ||||
400 | | ||||
392 | 401 | | |||
393 | #include "kcm.moc" | 402 | #include "kcm.moc" |