Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/items/qquickscreen_p.h |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | - | |
2 | - | |
3 | - | |
4 | - | |
5 | class QQuickItem; | - |
6 | class QQuickWindow; | - |
7 | class QScreen; | - |
8 | - | |
9 | - | |
10 | class __attribute__((visibility("default"))) QQuickScreenInfo : public QObject | - |
11 | { | - |
12 | public: | - |
13 | #pragma GCC diagnostic push | - |
14 | - | |
15 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
16 | static const QMetaObject staticMetaObject; virtual const QMetaObject *metaObject() const; virtual void *qt_metacast(const char *); virtual int qt_metacall(QMetaObject::Call, int, void **); static inline QString tr(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } __attribute__ ((__deprecated__)) static inline QString trUtf8(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } private: | - |
17 | #pragma GCC diagnostic ignored "-Wattributes" | - |
18 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
19 | #pragma GCC diagnostic pop | - |
20 | struct QPrivateSignal {}; | - |
21 | - | |
22 | - | |
23 | - | |
24 | - | |
25 | - | |
26 | - | |
27 | - | |
28 | - | |
29 | - | |
30 | - | |
31 | - | |
32 | - | |
33 | - | |
34 | - | |
35 | - | |
36 | - | |
37 | - | |
38 | - | |
39 | - | |
40 | public: | - |
41 | QQuickScreenInfo(QObject *parent = nullptr, QScreen *wrappedScreen = nullptr); | - |
42 | - | |
43 | QString name() const; | - |
44 | QString manufacturer() const; | - |
45 | QString model() const; | - |
46 | QString serialNumber() const; | - |
47 | int width() const; | - |
48 | int height() const; | - |
49 | int desktopAvailableWidth() const; | - |
50 | int desktopAvailableHeight() const; | - |
51 | qreal logicalPixelDensity() const; | - |
52 | qreal pixelDensity() const; | - |
53 | qreal devicePixelRatio() const; | - |
54 | Qt::ScreenOrientation primaryOrientation() const; | - |
55 | Qt::ScreenOrientation orientation() const; | - |
56 | int virtualX() const; | - |
57 | int virtualY() const; | - |
58 | - | |
59 | void setWrappedScreen(QScreen *screen); | - |
60 | QScreen *wrappedScreen() const; | - |
61 | - | |
62 | public : | - |
63 | void nameChanged(); | - |
64 | void manufacturerChanged(); | - |
65 | void modelChanged(); | - |
66 | void serialNumberChanged(); | - |
67 | void widthChanged(); | - |
68 | void heightChanged(); | - |
69 | void desktopGeometryChanged(); | - |
70 | void logicalPixelDensityChanged(); | - |
71 | void pixelDensityChanged(); | - |
72 | void devicePixelRatioChanged(); | - |
73 | void primaryOrientationChanged(); | - |
74 | void orientationChanged(); | - |
75 | void virtualXChanged(); | - |
76 | void virtualYChanged(); | - |
77 | - | |
78 | protected: | - |
79 | QPointer<QScreen> m_screen; | - |
80 | }; | - |
81 | - | |
82 | class __attribute__((visibility("default"))) QQuickScreenAttached : public QQuickScreenInfo | - |
83 | { | - |
84 | public: | - |
85 | #pragma GCC diagnostic push | - |
86 | - | |
87 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
88 | static const QMetaObject staticMetaObject; virtual const QMetaObject *metaObject() const; virtual void *qt_metacast(const char *); virtual int qt_metacall(QMetaObject::Call, int, void **); static inline QString tr(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } __attribute__ ((__deprecated__)) static inline QString trUtf8(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } private: | - |
89 | #pragma GCC diagnostic ignored "-Wattributes" | - |
90 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
91 | #pragma GCC diagnostic pop | - |
92 | struct QPrivateSignal {}; | - |
93 | - | |
94 | - | |
95 | - | |
96 | public: | - |
97 | QQuickScreenAttached(QObject* attachee); | - |
98 | - | |
99 | Qt::ScreenOrientations orientationUpdateMask() const; | - |
100 | void setOrientationUpdateMask(Qt::ScreenOrientations mask); | - |
101 | - | |
102 | - | |
103 | int angleBetween(int a, int b); | - |
104 | - | |
105 | void windowChanged(QQuickWindow*); | - |
106 | - | |
107 | public : | - |
108 | void orientationUpdateMaskChanged(); | - |
109 | - | |
110 | protected : | - |
111 | void screenChanged(QScreen*); | - |
112 | - | |
113 | private: | - |
114 | QQuickWindow* m_window; | - |
115 | QQuickItem* m_attachee; | - |
116 | Qt::ScreenOrientations m_updateMask; | - |
117 | bool m_updateMaskSet; | - |
118 | }; | - |
119 | - | |
120 | class __attribute__((visibility("default"))) QQuickScreen : public QObject | - |
121 | { | - |
122 | public: | - |
123 | #pragma GCC diagnostic push | - |
124 | - | |
125 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
126 | static const QMetaObject staticMetaObject; virtual const QMetaObject *metaObject() const; virtual void *qt_metacast(const char *); virtual int qt_metacall(QMetaObject::Call, int, void **); static inline QString tr(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } __attribute__ ((__deprecated__)) static inline QString trUtf8(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } private: | - |
127 | #pragma GCC diagnostic ignored "-Wattributes" | - |
128 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
129 | #pragma GCC diagnostic pop | - |
130 | struct QPrivateSignal {}; | - |
131 | public: | - |
132 | static QQuickScreenAttached *qmlAttachedProperties(QObject *object){ return executed 40 times by 3 tests: new QQuickScreenAttached(object);return new QQuickScreenAttached(object); Executed by:
executed 40 times by 3 tests: }return new QQuickScreenAttached(object); Executed by:
| 40 |
133 | }; | - |
134 | - | |
135 | - | |
136 | - | |
137 | template <> class QQmlTypeInfo<QQuickScreen > { public: enum { hasAttachedProperties = (((QML_HAS_ATTACHED_PROPERTIES) & QML_HAS_ATTACHED_PROPERTIES) == QML_HAS_ATTACHED_PROPERTIES) }; }; | - |
138 | template <> struct QMetaTypeId< QQuickScreenInfo * > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (const int id = metatype_id.loadAcquire()) return id; const int newId = qRegisterMetaType< QQuickScreenInfo * >("QQuickScreenInfo *", reinterpret_cast< QQuickScreenInfo * *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; template <> struct QMetaTypeId< QQmlListProperty<QQuickScreenInfo> > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (const int id = metatype_id.loadAcquire()) return id; const int newId = qRegisterMetaType< QQmlListProperty<QQuickScreenInfo> >("QQmlListProperty<QQuickScreenInfo>", reinterpret_cast< QQmlListProperty<QQuickScreenInfo> *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; | - |
Switch to Source code | Preprocessed file |