Changeset View
Changeset View
Standalone View
Standalone View
kcm/src/unifiedoutputconfig.cpp
Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Line(s) | 54 | UnifiedOutputConfig::UnifiedOutputConfig(const KScreen::ConfigPtr &config, QWidget *parent) | |||
---|---|---|---|---|---|
56 | , mConfig(config) | 56 | , mConfig(config) | ||
57 | { | 57 | { | ||
58 | } | 58 | } | ||
59 | 59 | | |||
60 | UnifiedOutputConfig::~UnifiedOutputConfig() | 60 | UnifiedOutputConfig::~UnifiedOutputConfig() | ||
61 | { | 61 | { | ||
62 | } | 62 | } | ||
63 | 63 | | |||
64 | void UnifiedOutputConfig::setOutput(const KScreen::OutputPtr &output) | 64 | void UnifiedOutputConfig::setOutput(const KScreen::OutputPtr &output, Control::OutputRetention retention) | ||
65 | { | 65 | { | ||
66 | Q_UNUSED(retention); // TODO: use? | ||||
67 | | ||||
66 | mOutput = output; | 68 | mOutput = output; | ||
67 | 69 | | |||
68 | mClones.clear(); | 70 | mClones.clear(); | ||
69 | mClones.reserve(mOutput->clones().count()); | 71 | mClones.reserve(mOutput->clones().count()); | ||
70 | Q_FOREACH (int id, mOutput->clones()) { | 72 | Q_FOREACH (int id, mOutput->clones()) { | ||
71 | mClones << mConfig->output(id); | 73 | mClones << mConfig->output(id); | ||
72 | } | 74 | } | ||
73 | mClones << mOutput; | 75 | mClones << mOutput; | ||
▲ Show 20 Lines • Show All 124 Lines • Show Last 20 Lines |