Changeset View
Changeset View
Standalone View
Standalone View
backends/xrandr/xrandr.cpp
Show First 20 Lines • Show All 210 Lines • ▼ Show 20 Line(s) | 210 | if (!config) { | |||
---|---|---|---|---|---|
211 | return; | 211 | return; | ||
212 | } | 212 | } | ||
213 | 213 | | |||
214 | qCDebug(KSCREEN_XRANDR) << "XRandR::setConfig"; | 214 | qCDebug(KSCREEN_XRANDR) << "XRandR::setConfig"; | ||
215 | s_internalConfig->applyKScreenConfig(config); | 215 | s_internalConfig->applyKScreenConfig(config); | ||
216 | qCDebug(KSCREEN_XRANDR) << "XRandR::setConfig done!"; | 216 | qCDebug(KSCREEN_XRANDR) << "XRandR::setConfig done!"; | ||
217 | } | 217 | } | ||
218 | 218 | | |||
219 | QByteArray XRandR::edid(int outputId) const | 219 | EdidPtr XRandR::edid(int outputId) const | ||
220 | { | 220 | { | ||
221 | const XRandROutput *output = s_internalConfig->output(outputId); | 221 | const XRandROutput *output = s_internalConfig->output(outputId); | ||
222 | if (!output) { | 222 | if (!output) { | ||
223 | return QByteArray(); | 223 | return {}; | ||
224 | } | 224 | } | ||
225 | 225 | | |||
226 | return output->edid(); | 226 | return EdidPtr::create(output->edid()); | ||
227 | } | 227 | } | ||
228 | 228 | | |||
229 | bool XRandR::isValid() const | 229 | bool XRandR::isValid() const | ||
230 | { | 230 | { | ||
231 | return m_isValid; | 231 | return m_isValid; | ||
232 | } | 232 | } | ||
233 | 233 | | |||
234 | quint8* XRandR::getXProperty(xcb_randr_output_t output, xcb_atom_t atom, size_t &len) | 234 | quint8* XRandR::getXProperty(xcb_randr_output_t output, xcb_atom_t atom, size_t &len) | ||
▲ Show 20 Lines • Show All 96 Lines • Show Last 20 Lines |