Changeset View
Changeset View
Standalone View
Standalone View
kded/generator.cpp
Show First 20 Lines • Show All 324 Lines • ▼ Show 20 Line(s) | 318 | Q_FOREACH(KScreen::OutputPtr output, connectedOutputs) { | |||
---|---|---|---|---|---|
325 | Q_ASSERT(mode); | 325 | Q_ASSERT(mode); | ||
326 | output->setCurrentModeId(mode->id()); | 326 | output->setCurrentModeId(mode->id()); | ||
327 | } | 327 | } | ||
328 | return; | 328 | return; | ||
329 | } | 329 | } | ||
330 | 330 | | |||
331 | 331 | | |||
332 | //At this point, we know we have common sizes, let's get the biggest on | 332 | //At this point, we know we have common sizes, let's get the biggest on | ||
333 | QList<QSize> commonSizeList = commonSizes.toList(); | 333 | QList<QSize> commonSizeList = commonSizes.values(); | ||
334 | std::sort(commonSizeList.begin(), commonSizeList.end()); | 334 | std::sort(commonSizeList.begin(), commonSizeList.end()); | ||
335 | const QSize biggestSize = commonSizeList.last(); | 335 | const QSize biggestSize = commonSizeList.last(); | ||
336 | 336 | | |||
337 | //Finally, look for the mode with biggestSize and biggest refreshRate and set it | 337 | //Finally, look for the mode with biggestSize and biggest refreshRate and set it | ||
338 | qCDebug(KSCREEN_KDED) << "Biggest Size: " << biggestSize; | 338 | qCDebug(KSCREEN_KDED) << "Biggest Size: " << biggestSize; | ||
339 | KScreen::ModePtr bestMode; | 339 | KScreen::ModePtr bestMode; | ||
340 | Q_FOREACH(KScreen::OutputPtr output, connectedOutputs) { | 340 | Q_FOREACH(KScreen::OutputPtr output, connectedOutputs) { | ||
341 | if (output->modes().isEmpty()) { | 341 | if (output->modes().isEmpty()) { | ||
▲ Show 20 Lines • Show All 333 Lines • Show Last 20 Lines |