Changeset View
Changeset View
Standalone View
Standalone View
outputscreens.cpp
Show First 20 Lines • Show All 89 Lines • ▼ Show 20 Line(s) | |||||
90 | float OutputScreens::refreshRate(int screen) const | 90 | float OutputScreens::refreshRate(int screen) const | ||
91 | { | 91 | { | ||
92 | if (AbstractOutput *output = findOutput(screen)) { | 92 | if (AbstractOutput *output = findOutput(screen)) { | ||
93 | return output->refreshRate() / 1000.0; | 93 | return output->refreshRate() / 1000.0; | ||
94 | } | 94 | } | ||
95 | return 60.0; | 95 | return 60.0; | ||
96 | } | 96 | } | ||
97 | 97 | | |||
98 | Qt::ScreenOrientation OutputScreens::orientation(int screen) const | | |||
99 | { | | |||
100 | if (AbstractOutput *output = findOutput(screen)) { | | |||
101 | return output->orientation(); | | |||
102 | } | | |||
103 | return Qt::PrimaryOrientation; | | |||
104 | } | | |||
105 | | ||||
106 | void OutputScreens::updateCount() | 98 | void OutputScreens::updateCount() | ||
107 | { | 99 | { | ||
108 | setCount(m_platform->enabledOutputs().size()); | 100 | setCount(m_platform->enabledOutputs().size()); | ||
109 | } | 101 | } | ||
110 | 102 | | |||
111 | int OutputScreens::number(const QPoint &pos) const | 103 | int OutputScreens::number(const QPoint &pos) const | ||
112 | { | 104 | { | ||
113 | int bestScreen = 0; | 105 | int bestScreen = 0; | ||
Show All 25 Lines |