Changeset View
Changeset View
Standalone View
Standalone View
screens.cpp
Show First 20 Lines • Show All 220 Lines • ▼ Show 20 Line(s) | |||||
221 | } | 221 | } | ||
222 | 222 | | |||
223 | Qt::ScreenOrientation Screens::orientation(int screen) const | 223 | Qt::ScreenOrientation Screens::orientation(int screen) const | ||
224 | { | 224 | { | ||
225 | Q_UNUSED(screen) | 225 | Q_UNUSED(screen) | ||
226 | return Qt::PrimaryOrientation; | 226 | return Qt::PrimaryOrientation; | ||
227 | } | 227 | } | ||
228 | 228 | | |||
229 | void Screens::setConfig(KSharedConfig::Ptr config) | ||||
230 | { | ||||
231 | m_config = config; | ||||
232 | if (m_orientationSensor) { | ||||
233 | m_orientationSensor->setConfig(config); | ||||
234 | } | ||||
235 | } | ||||
236 | | ||||
229 | BasicScreens::BasicScreens(Platform *backend, QObject *parent) | 237 | BasicScreens::BasicScreens(Platform *backend, QObject *parent) | ||
230 | : Screens(parent) | 238 | : Screens(parent) | ||
231 | , m_backend(backend) | 239 | , m_backend(backend) | ||
232 | { | 240 | { | ||
233 | } | 241 | } | ||
234 | 242 | | |||
235 | BasicScreens::~BasicScreens() = default; | 243 | BasicScreens::~BasicScreens() = default; | ||
236 | 244 | | |||
▲ Show 20 Lines • Show All 64 Lines • Show Last 20 Lines |