Changeset View
Changeset View
Standalone View
Standalone View
src/getconfigoperation.cpp
Show First 20 Lines • Show All 176 Lines • ▼ Show 20 Line(s) | 170 | { | |||
---|---|---|---|---|---|
177 | } else { | 177 | } else { | ||
178 | d->requestBackend(); | 178 | d->requestBackend(); | ||
179 | } | 179 | } | ||
180 | } | 180 | } | ||
181 | 181 | | |||
182 | void GetConfigOperationPrivate::loadEdid(KScreen::AbstractBackend* backend) | 182 | void GetConfigOperationPrivate::loadEdid(KScreen::AbstractBackend* backend) | ||
183 | { | 183 | { | ||
184 | Q_ASSERT(BackendManager::instance()->method() == BackendManager::InProcess); | 184 | Q_ASSERT(BackendManager::instance()->method() == BackendManager::InProcess); | ||
185 | Q_Q(GetConfigOperation); | | |||
186 | if (options & KScreen::ConfigOperation::NoEDID) { | 185 | if (options & KScreen::ConfigOperation::NoEDID) { | ||
187 | return; | 186 | return; | ||
188 | } | 187 | } | ||
189 | if (!config) { | 188 | if (!config) { | ||
190 | return; | 189 | return; | ||
191 | } | 190 | } | ||
192 | Q_FOREACH (auto output, config->outputs()) { | 191 | Q_FOREACH (auto output, config->outputs()) { | ||
193 | if (output->edid() == nullptr) { | 192 | if (output->edid() == nullptr) { | ||
194 | const QByteArray edidData = backend->edid(output->id()); | 193 | const QByteArray edidData = backend->edid(output->id()); | ||
195 | output->setEdid(edidData); | 194 | output->setEdid(edidData); | ||
196 | } | 195 | } | ||
197 | } | 196 | } | ||
198 | } | 197 | } | ||
199 | 198 | | |||
200 | 199 | | |||
201 | #include "getconfigoperation.moc" | 200 | #include "getconfigoperation.moc" |