Changeset View
Changeset View
Standalone View
Standalone View
kded/config.cpp
Show First 20 Lines • Show All 223 Lines • ▼ Show 20 Line(s) | 213 | for (const KScreen::OutputPtr &output : outputs) { | |||
---|---|---|---|---|---|
224 | if (!output->isConnected()) { | 224 | if (!output->isConnected()) { | ||
225 | continue; | 225 | continue; | ||
226 | } | 226 | } | ||
227 | 227 | | |||
228 | Output::writeGlobalPart(output, info, oldOutput); | 228 | Output::writeGlobalPart(output, info, oldOutput); | ||
229 | info[QStringLiteral("primary")] = output->isPrimary(); | 229 | info[QStringLiteral("primary")] = output->isPrimary(); | ||
230 | info[QStringLiteral("enabled")] = output->isEnabled(); | 230 | info[QStringLiteral("enabled")] = output->isEnabled(); | ||
231 | 231 | | |||
232 | auto setOutputConfigInfo = [this, &info](const KScreen::OutputPtr &out) { | 232 | auto setOutputConfigInfo = [&info](const KScreen::OutputPtr &out) { | ||
233 | if (!out) { | 233 | if (!out) { | ||
234 | return; | 234 | return; | ||
235 | } | 235 | } | ||
236 | 236 | | |||
237 | QVariantMap pos; | 237 | QVariantMap pos; | ||
238 | pos[QStringLiteral("x")] = out->pos().x(); | 238 | pos[QStringLiteral("x")] = out->pos().x(); | ||
239 | pos[QStringLiteral("y")] = out->pos().y(); | 239 | pos[QStringLiteral("y")] = out->pos().y(); | ||
240 | info[QStringLiteral("pos")] = pos; | 240 | info[QStringLiteral("pos")] = pos; | ||
Show All 22 Lines | |||||
263 | } | 263 | } | ||
264 | 264 | | |||
265 | void Config::log() | 265 | void Config::log() | ||
266 | { | 266 | { | ||
267 | if (!m_data) { | 267 | if (!m_data) { | ||
268 | return; | 268 | return; | ||
269 | } | 269 | } | ||
270 | const auto outputs = m_data->outputs(); | 270 | const auto outputs = m_data->outputs(); | ||
271 | for (const auto o : outputs) { | 271 | for (const auto &o : outputs) { | ||
272 | if (o->isConnected()) { | 272 | if (o->isConnected()) { | ||
273 | qCDebug(KSCREEN_KDED) << o; | 273 | qCDebug(KSCREEN_KDED) << o; | ||
274 | } | 274 | } | ||
275 | } | 275 | } | ||
276 | } | 276 | } |