Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/drm/edid.cpp
Show First 20 Lines • Show All 149 Lines • ▼ Show 20 Line(s) | 145 | #if HAVE_HWDATA | |||
---|---|---|---|---|---|
150 | if (pnpFile.exists() && pnpFile.open(QIODevice::ReadOnly)) { | 150 | if (pnpFile.exists() && pnpFile.open(QIODevice::ReadOnly)) { | ||
151 | while (!pnpFile.atEnd()) { | 151 | while (!pnpFile.atEnd()) { | ||
152 | const auto line = pnpFile.readLine(); | 152 | const auto line = pnpFile.readLine(); | ||
153 | if (line.startsWith(pnpId)) { | 153 | if (line.startsWith(pnpId)) { | ||
154 | return line.mid(4).trimmed(); | 154 | return line.mid(4).trimmed(); | ||
155 | } | 155 | } | ||
156 | } | 156 | } | ||
157 | } | 157 | } | ||
158 | #else | ||||
159 | Q_UNUSED(data) | ||||
158 | #endif | 160 | #endif | ||
159 | return {}; | 161 | return {}; | ||
160 | } | 162 | } | ||
161 | 163 | | |||
162 | Edid::Edid() | 164 | Edid::Edid() | ||
163 | { | 165 | { | ||
164 | } | 166 | } | ||
165 | 167 | | |||
▲ Show 20 Lines • Show All 52 Lines • Show Last 20 Lines |