Merge lp:~alan-griffiths/miral/remove-libmirserver-dev-from-screen.h into lp:miral

Proposed by Alan Griffiths on 2016-10-28
Status: Merged
Approved by: Gerry Boland on 2016-10-28
Approved revision: 428
Merged at revision: 423
Proposed branch: lp:~alan-griffiths/miral/remove-libmirserver-dev-from-screen.h
Merge into: lp:miral
Diff against target: 463 lines (+116/-78)
14 files modified
miral-qt/src/modules/Unity/Screens/CMakeLists.txt (+0/-4)
miral-qt/src/modules/Unity/Screens/plugin.cpp (+1/-1)
miral-qt/src/modules/Unity/Screens/qquickscreenwindow.cpp (+6/-6)
miral-qt/src/modules/Unity/Screens/qquickscreenwindow.h (+6/-6)
miral-qt/src/modules/Unity/Screens/screens.cpp (+1/-1)
miral-qt/src/modules/Unity/Screens/screens.h (+2/-29)
miral-qt/src/platforms/mirserver/CMakeLists.txt (+2/-1)
miral-qt/src/platforms/mirserver/customscreenconfiguration.h (+4/-2)
miral-qt/src/platforms/mirserver/screen.cpp (+20/-19)
miral-qt/src/platforms/mirserver/screen.h (+7/-6)
miral-qt/src/platforms/mirserver/screenscontroller.cpp (+1/-0)
miral-qt/src/platforms/mirserver/screenscontroller.h (+4/-1)
miral-qt/src/platforms/mirserver/screentypes.h (+60/-0)
miral-qt/tests/mirserver/Screen/screen_test.cpp (+2/-2)
To merge this branch: bzr merge lp:~alan-griffiths/miral/remove-libmirserver-dev-from-screen.h
Reviewer Review Type Date Requested Status
Gerry Boland 2016-10-28 Approve on 2016-10-28
Review via email: mp+309552@code.launchpad.net

Commit Message

[miral-qt] Encapsulate class Screen's dependence on libmirserver

To post a comment you must log in.
426. By Alan Griffiths on 2016-10-28

Can fix customscreenconfiguration.h simply now

Gerry Boland (gerboland) wrote :

=== added file 'miral-qt/src/platforms/mirserver/screen_configuration.h'
Please remove the underscore in the filename, it's not Qt-ish. It contains the definition of some Screen property types, not what I'd define "configuration" - screentypes.h maybe?

=== modified file 'miral-qt/src/modules/Unity/Screens/qquickscreenwindow.cpp'
-bool QQuickScreenWindow::setScaleAndFormFactor(const float scale, const Screens::FormFactor formFactor)

could you please restore this. It is useful when testing dynamic grid units in applications. (it is a method for QML can call - Q_INVOKABLE)

Rest looks just fine, thank you

review: Needs Fixing
427. By Alan Griffiths on 2016-10-28

screen_configuration.h => screentypes.h

428. By Alan Griffiths on 2016-10-28

Restore code that isn't really unused

Alan Griffiths (alan-griffiths) wrote :

> === added file 'miral-qt/src/platforms/mirserver/screen_configuration.h'
> Please remove the underscore in the filename, it's not Qt-ish. It contains the
> definition of some Screen property types, not what I'd define "configuration"
> - screentypes.h maybe?

Done
> === modified file 'miral-qt/src/modules/Unity/Screens/qquickscreenwindow.cpp'
> -bool QQuickScreenWindow::setScaleAndFormFactor(const float scale, const
> Screens::FormFactor formFactor)
>
> could you please restore this. It is useful when testing dynamic grid units in
> applications. (it is a method for QML can call - Q_INVOKABLE)

Done

Gerry Boland (gerboland) wrote :

Thank you!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'miral-qt/src/modules/Unity/Screens/CMakeLists.txt'
2--- miral-qt/src/modules/Unity/Screens/CMakeLists.txt 2016-10-21 15:48:36 +0000
3+++ miral-qt/src/modules/Unity/Screens/CMakeLists.txt 2016-10-28 14:35:40 +0000
4@@ -14,10 +14,6 @@
5 qquickscreenwindow.cpp
6 )
7
8-# screens.h references mir/graphics/display_configuration.h
9-set_source_files_properties(screens.cpp PROPERTIES COMPILE_FLAGS "${CMAKE_CXX_FLAGS} ${FIXME_MIRSERVER_CXXFLAGS}")
10-set_source_files_properties(qquickscreenwindow.cpp PROPERTIES COMPILE_FLAGS "${CMAKE_CXX_FLAGS} ${FIXME_MIRSERVER_CXXFLAGS}")
11-
12 add_library(unityscreensplugin SHARED
13 ${SCREENSPLUGIN_SRC}
14 )
15
16=== modified file 'miral-qt/src/modules/Unity/Screens/plugin.cpp'
17--- miral-qt/src/modules/Unity/Screens/plugin.cpp 2016-06-01 22:06:51 +0000
18+++ miral-qt/src/modules/Unity/Screens/plugin.cpp 2016-10-28 14:35:40 +0000
19@@ -36,7 +36,7 @@
20 qRegisterMetaType<QScreen*>("QScreen*");
21
22 qmlRegisterType<qtmir::Screens>(uri, 0, 1, "Screens");
23- qRegisterMetaType<qtmir::Screens::FormFactor>("Screens::FormFactor");
24+ qRegisterMetaType<qtmir::FormFactor>("qtmir::FormFactor");
25
26 qmlRegisterType<qtmir::QQuickScreenWindow>(uri, 0, 1, "ScreenWindow");
27 }
28
29=== modified file 'miral-qt/src/modules/Unity/Screens/qquickscreenwindow.cpp'
30--- miral-qt/src/modules/Unity/Screens/qquickscreenwindow.cpp 2016-08-16 14:15:26 +0000
31+++ miral-qt/src/modules/Unity/Screens/qquickscreenwindow.cpp 2016-10-28 14:35:40 +0000
32@@ -48,7 +48,7 @@
33 QQuickScreenWindow::QQuickScreenWindow(QQuickWindow *parent)
34 : QQuickWindow(parent)
35 , m_scale(-1.0) // start with invalid initial state, fetch correct value on first invokation
36- , m_formFactor(Screens::FormFactorUnknown)
37+ , m_formFactor(FormFactorUnknown)
38 {
39 if (qGuiApp->platformName() == QLatin1String("mirserver")) {
40 connect(qGuiApp->platformNativeInterface(), &QPlatformNativeInterface::windowPropertyChanged,
41@@ -91,7 +91,7 @@
42 return m_scale;
43 }
44
45-bool QQuickScreenWindow::setScaleAndFormFactor(const float scale, const Screens::FormFactor formFactor)
46+bool QQuickScreenWindow::setScaleAndFormFactor(const float scale, const FormFactor formFactor)
47 {
48 if (qFuzzyCompare(scale, m_scale) && formFactor == m_formFactor) {
49 return true;
50@@ -125,9 +125,9 @@
51 return controller->setConfiguration(configs);
52 }
53
54-Screens::FormFactor QQuickScreenWindow::formFactor()
55+FormFactor QQuickScreenWindow::formFactor()
56 {
57- if (m_formFactor == Screens::FormFactorUnknown) {
58+ if (m_formFactor == FormFactorUnknown) {
59 m_formFactor = getFormFactorNativeProperty();
60 }
61 return m_formFactor;
62@@ -173,7 +173,7 @@
63 return scale;
64 }
65
66-Screens::FormFactor QQuickScreenWindow::getFormFactorNativeProperty() const
67+FormFactor QQuickScreenWindow::getFormFactorNativeProperty() const
68 {
69 QVariant formFactorVal = qGuiApp->platformNativeInterface()
70 ->windowProperty(handle(), QStringLiteral("formFactor"));
71@@ -181,5 +181,5 @@
72 return m_formFactor;
73 }
74
75- return static_cast<Screens::FormFactor>(formFactorVal.toInt());
76+ return static_cast<FormFactor>(formFactorVal.toInt());
77 }
78
79=== modified file 'miral-qt/src/modules/Unity/Screens/qquickscreenwindow.h'
80--- miral-qt/src/modules/Unity/Screens/qquickscreenwindow.h 2016-06-01 22:06:51 +0000
81+++ miral-qt/src/modules/Unity/Screens/qquickscreenwindow.h 2016-10-28 14:35:40 +0000
82@@ -28,7 +28,7 @@
83
84 Q_PROPERTY(QScreen *screen READ screen WRITE setScreen NOTIFY screenChanged)
85 Q_PROPERTY(float scale READ scale NOTIFY scaleChanged)
86- Q_PROPERTY(Screens::FormFactor formFactor READ formFactor NOTIFY formFactorChanged)
87+ Q_PROPERTY(FormFactor formFactor READ formFactor NOTIFY formFactorChanged)
88
89 public:
90 explicit QQuickScreenWindow(QQuickWindow *parent = 0);
91@@ -37,13 +37,13 @@
92 void setScreen(QScreen *screen);
93
94 qreal scale();
95- Screens::FormFactor formFactor();
96- Q_INVOKABLE bool setScaleAndFormFactor(const float scale, const Screens::FormFactor formFactor);
97+ FormFactor formFactor();
98+ Q_INVOKABLE bool setScaleAndFormFactor(const float scale, const FormFactor formFactor);
99
100 Q_SIGNALS:
101 void screenChanged(QScreen *screen);
102 void scaleChanged(qreal scale);
103- void formFactorChanged(Screens::FormFactor arg);
104+ void formFactorChanged(FormFactor arg);
105
106 private Q_SLOTS:
107 void nativePropertyChanged(QPlatformWindow *window, const QString &propertyName);
108@@ -51,8 +51,8 @@
109 private:
110 float getScaleNativeProperty() const;
111 float m_scale;
112- Screens::FormFactor getFormFactorNativeProperty() const;
113- Screens::FormFactor m_formFactor;
114+ FormFactor getFormFactorNativeProperty() const;
115+ FormFactor m_formFactor;
116 };
117
118 } //namespace qtmir
119
120=== modified file 'miral-qt/src/modules/Unity/Screens/screens.cpp'
121--- miral-qt/src/modules/Unity/Screens/screens.cpp 2016-06-01 22:06:51 +0000
122+++ miral-qt/src/modules/Unity/Screens/screens.cpp 2016-10-28 14:35:40 +0000
123@@ -62,7 +62,7 @@
124 case OutputTypeRole: {
125 auto screen = static_cast<Screen*>(m_screenList.at(index.row())->handle());
126 if (screen) {
127- return QVariant(static_cast<OutputTypes>(screen->outputType())); //FIXME: cheeky
128+ return QVariant(screen->outputType());
129 } else {
130 return OutputTypes::Unknown;
131 }
132
133=== modified file 'miral-qt/src/modules/Unity/Screens/screens.h'
134--- miral-qt/src/modules/Unity/Screens/screens.h 2016-06-01 22:06:51 +0000
135+++ miral-qt/src/modules/Unity/Screens/screens.h 2016-10-28 14:35:40 +0000
136@@ -17,6 +17,8 @@
137 #ifndef SCREENS_H
138 #define SCREENS_H
139
140+#include "screentypes.h"
141+
142 #include <QAbstractListModel>
143
144 class QScreen;
145@@ -39,33 +41,6 @@
146 FormFactorRole,
147 };
148
149- enum OutputTypes {
150- Unknown,
151- VGA,
152- DVII,
153- DVID,
154- DVIA,
155- Composite,
156- SVideo,
157- LVDS,
158- Component,
159- NinePinDIN,
160- DisplayPort,
161- HDMIA,
162- HDMIB,
163- TV,
164- EDP
165- };
166-
167- enum FormFactor {
168- FormFactorUnknown,
169- FormFactorPhone,
170- FormFactorTablet,
171- FormFactorMonitor,
172- FormFactorTV,
173- FormFactorProjector,
174- };
175-
176 explicit Screens(QObject *parent = 0);
177 virtual ~Screens() noexcept = default;
178
179@@ -91,6 +66,4 @@
180
181 } // namespace qtmir
182
183-Q_DECLARE_METATYPE(qtmir::Screens::FormFactor)
184-
185 #endif // SCREENS_H
186
187=== modified file 'miral-qt/src/platforms/mirserver/CMakeLists.txt'
188--- miral-qt/src/platforms/mirserver/CMakeLists.txt 2016-10-27 07:30:45 +0000
189+++ miral-qt/src/platforms/mirserver/CMakeLists.txt 2016-10-28 14:35:40 +0000
190@@ -74,12 +74,14 @@
191 windowmanagementpolicy.cpp
192 mirserverhooks.cpp mirserverhooks.h
193 setqtcompositor.cpp setqtcompositor.h
194+ tracepoints.c
195 # We need to run moc on these headers
196 ${APPLICATION_API_INCLUDEDIR}/unity/shell/application/Mir.h
197 ${MIRAL_QT_SOURCE_DIR}/src/common/appnotifier.h
198 ${MIRAL_QT_SOURCE_DIR}/src/common/windowcontrollerinterface.h
199 ${MIRAL_QT_SOURCE_DIR}/src/common/windowmodelnotifier.h
200 )
201+set_source_files_properties(tracepoints.c PROPERTIES COMPILE_FLAGS "${CMAKE_CFLAGS} -fPIC")
202
203 include_directories(SYSTEM ${MIRSERVER_INCLUDE_DIRS})
204
205@@ -97,7 +99,6 @@
206 mirserverintegration.cpp
207 miropenglcontext.cpp
208 offscreensurface.cpp
209- tracepoints.c
210 promptsessionmanager.cpp promptsessionmanager.h promptsession.h
211 # We need to run moc on these headers
212 ${APPLICATION_API_INCLUDEDIR}/unity/shell/application/MirMousePointerInterface.h
213
214=== modified file 'miral-qt/src/platforms/mirserver/customscreenconfiguration.h'
215--- miral-qt/src/platforms/mirserver/customscreenconfiguration.h 2016-06-01 22:06:51 +0000
216+++ miral-qt/src/platforms/mirserver/customscreenconfiguration.h 2016-10-28 14:35:40 +0000
217@@ -20,11 +20,13 @@
218 #include <QPoint>
219 #include <QVector>
220
221-#include <mir/graphics/display_configuration.h>
222+#include "screentypes.h"
223+#include <mir_toolkit/common.h>
224+
225
226 struct CustomScreenConfiguration
227 {
228- mir::graphics::DisplayConfigurationOutputId id;
229+ qtmir::OutputId id;
230
231 QPoint topLeft;
232 uint32_t currentModeIndex;
233
234=== modified file 'miral-qt/src/platforms/mirserver/screen.cpp'
235--- miral-qt/src/platforms/mirserver/screen.cpp 2016-09-27 15:11:04 +0000
236+++ miral-qt/src/platforms/mirserver/screen.cpp 2016-10-28 14:35:40 +0000
237@@ -24,6 +24,7 @@
238 #include "mir/graphics/buffer.h"
239 #include "mir/graphics/display_buffer.h"
240 #include "mir/graphics/display.h"
241+#include <mir/graphics/display_configuration.h>
242 #include <mir/renderer/gl/render_target.h>
243
244 // Qt
245@@ -96,25 +97,25 @@
246 }
247 }
248
249-QString displayTypeToString(enum mir::graphics::DisplayConfigurationOutputType type)
250+QString displayTypeToString(qtmir::OutputTypes type)
251 {
252- typedef mir::graphics::DisplayConfigurationOutputType Type;
253+ typedef qtmir::OutputTypes Type;
254 switch (type) {
255- case Type::vga: return QStringLiteral("VGP");
256- case Type::dvii: return QStringLiteral("DVI-I");
257- case Type::dvid: return QStringLiteral("DVI-D");
258- case Type::dvia: return QStringLiteral("DVI-A");
259- case Type::composite: return QStringLiteral("Composite");
260- case Type::svideo: return QStringLiteral("S-Video");
261- case Type::lvds: return QStringLiteral("LVDS");
262- case Type::component: return QStringLiteral("Component");
263- case Type::ninepindin: return QStringLiteral("9 Pin DIN");
264- case Type::displayport: return QStringLiteral("DisplayPort");
265- case Type::hdmia: return QStringLiteral("HDMI-A");
266- case Type::hdmib: return QStringLiteral("HDMI-B");
267- case Type::tv: return QStringLiteral("TV");
268- case Type::edp: return QStringLiteral("EDP");
269- case Type::unknown:
270+ case Type::VGA: return QStringLiteral("VGP");
271+ case Type::DVII: return QStringLiteral("DVI-I");
272+ case Type::DVID: return QStringLiteral("DVI-D");
273+ case Type::DVIA: return QStringLiteral("DVI-A");
274+ case Type::Composite: return QStringLiteral("Composite");
275+ case Type::SVideo: return QStringLiteral("S-Video");
276+ case Type::LVDS: return QStringLiteral("LVDS");
277+ case Type::Component: return QStringLiteral("Component");
278+ case Type::NinePinDIN: return QStringLiteral("9 Pin DIN");
279+ case Type::DisplayPort: return QStringLiteral("DisplayPort");
280+ case Type::HDMIA: return QStringLiteral("HDMI-A");
281+ case Type::HDMIB: return QStringLiteral("HDMI-B");
282+ case Type::TV: return QStringLiteral("TV");
283+ case Type::EDP: return QStringLiteral("EDP");
284+ case Type::Unknown:
285 default:
286 return QStringLiteral("Unknown");
287 } //switch
288@@ -211,7 +212,7 @@
289
290 // Output data - each output has a unique id and corresponding type. Can be multiple cards.
291 m_outputId = screen.id;
292- m_type = screen.type;
293+ m_type = static_cast<qtmir::OutputTypes>(screen.type); //FIXME: need compile time check these are equivalent
294
295 // Physical screen size
296 m_physicalSize.setWidth(screen.physical_size_mm.width.as_int());
297@@ -412,7 +413,7 @@
298 bool Screen::internalDisplay() const
299 {
300 using namespace mir::graphics;
301- if (m_type == DisplayConfigurationOutputType::lvds || m_type == DisplayConfigurationOutputType::edp) {
302+ if (m_type == qtmir::OutputTypes::LVDS || m_type == qtmir::OutputTypes::EDP) {
303 return true;
304 }
305 return false;
306
307=== modified file 'miral-qt/src/platforms/mirserver/screen.h'
308--- miral-qt/src/platforms/mirserver/screen.h 2016-09-27 15:11:04 +0000
309+++ miral-qt/src/platforms/mirserver/screen.h 2016-10-28 14:35:40 +0000
310@@ -25,15 +25,16 @@
311 #include <qpa/qplatformscreen.h>
312
313 // Mir
314-#include <mir/graphics/display_configuration.h>
315+#include <mir_toolkit/common.h>
316
317 // local
318 #include "cursor.h"
319 #include "screenwindow.h"
320+#include "screentypes.h"
321
322 class QOrientationSensor;
323 namespace mir {
324- namespace graphics { class DisplayBuffer; class DisplaySyncGroup; }
325+ namespace graphics { class DisplayBuffer; class DisplaySyncGroup; class DisplayConfigurationOutput; }
326 namespace renderer { namespace gl { class RenderTarget; }}
327 }
328
329@@ -59,8 +60,8 @@
330 float scale() const { return m_scale; }
331 MirFormFactor formFactor() const { return m_formFactor; }
332 MirPowerMode powerMode() const { return m_powerMode; }
333- mir::graphics::DisplayConfigurationOutputId outputId() const { return m_outputId; }
334- mir::graphics::DisplayConfigurationOutputType outputType() const { return m_type; }
335+ qtmir::OutputId outputId() const { return m_outputId; }
336+ qtmir::OutputTypes outputType() const { return m_type; }
337 uint32_t currentModeIndex() const { return m_currentModeIndex; }
338
339 ScreenWindow* window() const;
340@@ -101,8 +102,8 @@
341
342 mir::renderer::gl::RenderTarget *m_renderTarget;
343 mir::graphics::DisplaySyncGroup *m_displayGroup;
344- mir::graphics::DisplayConfigurationOutputId m_outputId;
345- mir::graphics::DisplayConfigurationOutputType m_type;
346+ qtmir::OutputId m_outputId;
347+ qtmir::OutputTypes m_type;
348 MirPowerMode m_powerMode;
349
350 Qt::ScreenOrientation m_nativeOrientation;
351
352=== modified file 'miral-qt/src/platforms/mirserver/screenscontroller.cpp'
353--- miral-qt/src/platforms/mirserver/screenscontroller.cpp 2016-08-16 14:15:26 +0000
354+++ miral-qt/src/platforms/mirserver/screenscontroller.cpp 2016-10-28 14:35:40 +0000
355@@ -16,6 +16,7 @@
356
357 #include "screenscontroller.h"
358 #include "screen.h"
359+#include "screensmodel.h"
360
361 // Mir
362 #include <mir/graphics/display.h>
363
364=== modified file 'miral-qt/src/platforms/mirserver/screenscontroller.h'
365--- miral-qt/src/platforms/mirserver/screenscontroller.h 2016-08-16 14:15:26 +0000
366+++ miral-qt/src/platforms/mirserver/screenscontroller.h 2016-10-28 14:35:40 +0000
367@@ -24,7 +24,10 @@
368
369 // local
370 #include "customscreenconfiguration.h"
371-#include "screensmodel.h"
372+
373+#include <memory>
374+
375+class ScreensModel;
376
377 namespace mir {
378 namespace graphics { class Display; }
379
380=== added file 'miral-qt/src/platforms/mirserver/screentypes.h'
381--- miral-qt/src/platforms/mirserver/screentypes.h 1970-01-01 00:00:00 +0000
382+++ miral-qt/src/platforms/mirserver/screentypes.h 2016-10-28 14:35:40 +0000
383@@ -0,0 +1,60 @@
384+/*
385+ * Copyright © 2016 Canonical Ltd.
386+ *
387+ * This program is free software: you can redistribute it and/or modify it under
388+ * the terms of the GNU Lesser General Public License version 3, as published by
389+ * the Free Software Foundation.
390+ *
391+ * This program is distributed in the hope that it will be useful, but WITHOUT
392+ * ANY WARRANTY; without even the implied warranties of MERCHANTABILITY,
393+ * SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
394+ * Lesser General Public License for more details.
395+ *
396+ * You should have received a copy of the GNU Lesser General Public License
397+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
398+ */
399+
400+#ifndef QTMIR_SCREEN_TYPES_H
401+#define QTMIR_SCREEN_TYPES_H
402+
403+#include <mir/int_wrapper.h>
404+
405+#include <QtCore/qmetatype.h>
406+
407+namespace mir { namespace graphics { namespace detail { struct GraphicsConfOutputIdTag; } } }
408+
409+namespace qtmir
410+{
411+using OutputId = mir::IntWrapper<mir::graphics::detail::GraphicsConfOutputIdTag>;
412+
413+enum OutputTypes {
414+ Unknown,
415+ VGA,
416+ DVII,
417+ DVID,
418+ DVIA,
419+ Composite,
420+ SVideo,
421+ LVDS,
422+ Component,
423+ NinePinDIN,
424+ DisplayPort,
425+ HDMIA,
426+ HDMIB,
427+ TV,
428+ EDP
429+};
430+
431+enum FormFactor {
432+ FormFactorUnknown,
433+ FormFactorPhone,
434+ FormFactorTablet,
435+ FormFactorMonitor,
436+ FormFactorTV,
437+ FormFactorProjector,
438+};
439+}
440+
441+Q_DECLARE_METATYPE(qtmir::FormFactor)
442+
443+#endif //QTMIR_SCREEN_TYPES_H
444
445=== modified file 'miral-qt/tests/mirserver/Screen/screen_test.cpp'
446--- miral-qt/tests/mirserver/Screen/screen_test.cpp 2016-06-01 22:06:51 +0000
447+++ miral-qt/tests/mirserver/Screen/screen_test.cpp 2016-10-28 14:35:40 +0000
448@@ -80,7 +80,7 @@
449 EXPECT_EQ(screen->format(), QImage::Format_RGBA8888);
450 EXPECT_EQ(screen->refreshRate(), 59);
451 EXPECT_EQ(screen->physicalSize(), QSize(1111, 2222));
452- EXPECT_EQ(screen->outputType(), mg::DisplayConfigurationOutputType::dvid);
453+ EXPECT_EQ(screen->outputType(), qtmir::OutputTypes::DVID);
454 }
455
456 TEST_F(ScreenTest, ReadDifferentConfigurationFromDisplayConfig)
457@@ -93,5 +93,5 @@
458 EXPECT_EQ(screen->format(), QImage::Format_RGBX8888);
459 EXPECT_EQ(screen->refreshRate(), 75);
460 EXPECT_EQ(screen->physicalSize(), QSize(1000, 2000));
461- EXPECT_EQ(screen->outputType(), mg::DisplayConfigurationOutputType::lvds);
462+ EXPECT_EQ(screen->outputType(), qtmir::OutputTypes::LVDS);
463 }

Subscribers

People subscribed via source and target branches