| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlglobal_p.h |
| Switch to Source code | Preprocessed file |
| Line | Source | Count | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | - | |||||||||||||
| 2 | - | |||||||||||||
| 3 | template<class T> | - | ||||||||||||
| 4 | T qmlobject_cast(QObject *object) | - | ||||||||||||
| 5 | { | - | ||||||||||||
| 6 | if (object
| 3676-899747 | ||||||||||||
| 7 | return executed 703048 times by 99 tests: static_cast<T>(object);return static_cast<T>(object);Executed by:
executed 703048 times by 99 tests: return static_cast<T>(object);Executed by:
| 703048 | ||||||||||||
| 8 | else | - | ||||||||||||
| 9 | return executed 200375 times by 75 tests: 0;return 0;Executed by:
executed 200375 times by 75 tests: return 0;Executed by:
| 200375 | ||||||||||||
| 10 | } | - | ||||||||||||
| 11 | - | |||||||||||||
| 12 | inline quint16 qmlSourceCoordinate(int n) | - | ||||||||||||
| 13 | { | - | ||||||||||||
| 14 | return executed 3280 times by 53 tests: (n > 0 && n <= static_cast<int>(return (n > 0 && n <= static_cast<int>( (0x7fff * 2 + 1) )) ? static_cast<quint16>(n) : 0;Executed by:
executed 3280 times by 53 tests: return (n > 0 && n <= static_cast<int>( (0x7fff * 2 + 1) )) ? static_cast<quint16>(n) : 0;Executed by:
| 3280 | ||||||||||||
| 15 | (0x7fff * 2 + 1) executed 3280 times by 53 tests: return (n > 0 && n <= static_cast<int>( (0x7fff * 2 + 1) )) ? static_cast<quint16>(n) : 0;Executed by:
| 3280 | ||||||||||||
| 16 | )) ? static_cast<quint16>(n) : 0; executed 3280 times by 53 tests: return (n > 0 && n <= static_cast<int>( (0x7fff * 2 + 1) )) ? static_cast<quint16>(n) : 0;Executed by:
| 3280 | ||||||||||||
| 17 | } | - | ||||||||||||
| 18 | - | |||||||||||||
| 19 | inline int qmlSourceCoordinate(quint16 n) | - | ||||||||||||
| 20 | { | - | ||||||||||||
| 21 | return executed 4785 times by 53 tests: (n == 0) ? -1 : static_cast<int>(n);return (n == 0) ? -1 : static_cast<int>(n);Executed by:
executed 4785 times by 53 tests: return (n == 0) ? -1 : static_cast<int>(n);Executed by:
| 4785 | ||||||||||||
| 22 | } | - | ||||||||||||
| 23 | bool QQml_isFileCaseCorrect(const QString &fileName, int length = -1); | - | ||||||||||||
| 24 | - | |||||||||||||
| 25 | - | |||||||||||||
| 26 | - | |||||||||||||
| 27 | - | |||||||||||||
| 28 | - | |||||||||||||
| 29 | - | |||||||||||||
| 30 | inline void QQml_setParent_noEvent(QObject *object, QObject *parent) | - | ||||||||||||
| 31 | { | - | ||||||||||||
| 32 | QObjectPrivate *d_ptr = QObjectPrivate::get(object); | - | ||||||||||||
| 33 | bool sce = d_ptr->sendChildEvents; | - | ||||||||||||
| 34 | d_ptr->sendChildEvents = false; | - | ||||||||||||
| 35 | object->setParent(parent); | - | ||||||||||||
| 36 | d_ptr->sendChildEvents = sce; | - | ||||||||||||
| 37 | } executed 437763 times by 131 tests: end of blockExecuted by:
| 437763 | ||||||||||||
| 38 | - | |||||||||||||
| 39 | class __attribute__((visibility("default"))) QQmlValueTypeProvider | - | ||||||||||||
| 40 | { | - | ||||||||||||
| 41 | public: | - | ||||||||||||
| 42 | QQmlValueTypeProvider(); | - | ||||||||||||
| 43 | virtual ~QQmlValueTypeProvider(); | - | ||||||||||||
| 44 | - | |||||||||||||
| 45 | const QMetaObject *metaObjectForMetaType(int); | - | ||||||||||||
| 46 | - | |||||||||||||
| 47 | bool initValueType(int, QVariant&); | - | ||||||||||||
| 48 | - | |||||||||||||
| 49 | QVariant createValueType(int, int, const void *[]); | - | ||||||||||||
| 50 | bool createValueFromString(int, const QString &, void *, size_t); | - | ||||||||||||
| 51 | bool createStringFromValue(int, const void *, QString *); | - | ||||||||||||
| 52 | - | |||||||||||||
| 53 | QVariant createVariantFromString(const QString &); | - | ||||||||||||
| 54 | QVariant createVariantFromString(int, const QString &, bool *); | - | ||||||||||||
| 55 | QVariant createVariantFromJsObject(int, QQmlV4Handle, QV4::ExecutionEngine *, bool*); | - | ||||||||||||
| 56 | - | |||||||||||||
| 57 | bool equalValueType(int, const void *, const QVariant&); | - | ||||||||||||
| 58 | bool storeValueType(int, const void *, void *, size_t); | - | ||||||||||||
| 59 | bool readValueType(const QVariant&, void *, int); | - | ||||||||||||
| 60 | bool writeValueType(int, const void *, QVariant&); | - | ||||||||||||
| 61 | - | |||||||||||||
| 62 | private: | - | ||||||||||||
| 63 | virtual const QMetaObject *getMetaObjectForMetaType(int); | - | ||||||||||||
| 64 | virtual bool init(int, QVariant&); | - | ||||||||||||
| 65 | - | |||||||||||||
| 66 | virtual bool create(int, int, const void *[], QVariant *); | - | ||||||||||||
| 67 | virtual bool createFromString(int, const QString &, void *, size_t); | - | ||||||||||||
| 68 | virtual bool createStringFrom(int, const void *, QString *); | - | ||||||||||||
| 69 | - | |||||||||||||
| 70 | virtual bool variantFromString(const QString &, QVariant *); | - | ||||||||||||
| 71 | virtual bool variantFromString(int, const QString &, QVariant *); | - | ||||||||||||
| 72 | virtual bool variantFromJsObject(int, QQmlV4Handle, QV4::ExecutionEngine *, QVariant *); | - | ||||||||||||
| 73 | - | |||||||||||||
| 74 | virtual bool equal(int, const void *, const QVariant&); | - | ||||||||||||
| 75 | virtual bool store(int, const void *, void *, size_t); | - | ||||||||||||
| 76 | virtual bool read(const QVariant&, void *, int); | - | ||||||||||||
| 77 | virtual bool write(int, const void *, QVariant&); | - | ||||||||||||
| 78 | - | |||||||||||||
| 79 | friend __attribute__((visibility("default"))) void QQml_addValueTypeProvider(QQmlValueTypeProvider *); | - | ||||||||||||
| 80 | friend __attribute__((visibility("default"))) void QQml_removeValueTypeProvider(QQmlValueTypeProvider *); | - | ||||||||||||
| 81 | - | |||||||||||||
| 82 | QQmlValueTypeProvider *next; | - | ||||||||||||
| 83 | }; | - | ||||||||||||
| 84 | - | |||||||||||||
| 85 | __attribute__((visibility("default"))) void QQml_addValueTypeProvider(QQmlValueTypeProvider *); | - | ||||||||||||
| 86 | __attribute__((visibility("default"))) QQmlValueTypeProvider *QQml_valueTypeProvider(); | - | ||||||||||||
| 87 | - | |||||||||||||
| 88 | - | |||||||||||||
| 89 | class __attribute__((visibility("default"))) QQmlColorProvider | - | ||||||||||||
| 90 | { | - | ||||||||||||
| 91 | public: | - | ||||||||||||
| 92 | virtual ~QQmlColorProvider(); | - | ||||||||||||
| 93 | virtual QVariant colorFromString(const QString &, bool *); | - | ||||||||||||
| 94 | virtual unsigned rgbaFromString(const QString &, bool *); | - | ||||||||||||
| 95 | - | |||||||||||||
| 96 | virtual QVariant fromRgbF(double, double, double, double); | - | ||||||||||||
| 97 | virtual QVariant fromHslF(double, double, double, double); | - | ||||||||||||
| 98 | virtual QVariant fromHsvF(double, double, double, double); | - | ||||||||||||
| 99 | virtual QVariant lighter(const QVariant &, qreal); | - | ||||||||||||
| 100 | virtual QVariant darker(const QVariant &, qreal); | - | ||||||||||||
| 101 | virtual QVariant tint(const QVariant &, const QVariant &); | - | ||||||||||||
| 102 | }; | - | ||||||||||||
| 103 | - | |||||||||||||
| 104 | __attribute__((visibility("default"))) QQmlColorProvider *QQml_setColorProvider(QQmlColorProvider *); | - | ||||||||||||
| 105 | __attribute__((visibility("default"))) QQmlColorProvider *QQml_colorProvider(); | - | ||||||||||||
| 106 | - | |||||||||||||
| 107 | - | |||||||||||||
| 108 | class __attribute__((visibility("default"))) QQmlGuiProvider | - | ||||||||||||
| 109 | { | - | ||||||||||||
| 110 | public: | - | ||||||||||||
| 111 | virtual ~QQmlGuiProvider(); | - | ||||||||||||
| 112 | virtual QObject *application(QObject *parent); | - | ||||||||||||
| 113 | virtual QObject *inputMethod(); | - | ||||||||||||
| 114 | virtual QObject *styleHints(); | - | ||||||||||||
| 115 | virtual QStringList fontFamilies(); | - | ||||||||||||
| 116 | virtual bool openUrlExternally(QUrl &); | - | ||||||||||||
| 117 | virtual QString pluginName() const; | - | ||||||||||||
| 118 | }; | - | ||||||||||||
| 119 | - | |||||||||||||
| 120 | __attribute__((visibility("default"))) QQmlGuiProvider *QQml_setGuiProvider(QQmlGuiProvider *); | - | ||||||||||||
| 121 | __attribute__((visibility("default"))) QQmlGuiProvider *QQml_guiProvider(); | - | ||||||||||||
| 122 | - | |||||||||||||
| 123 | class QQmlApplicationPrivate; | - | ||||||||||||
| 124 | - | |||||||||||||
| 125 | class __attribute__((visibility("default"))) QQmlApplication : public QObject | - | ||||||||||||
| 126 | { | - | ||||||||||||
| 127 | - | |||||||||||||
| 128 | public: | - | ||||||||||||
| 129 | #pragma GCC diagnostic push | - | ||||||||||||
| 130 | - | |||||||||||||
| 131 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - | ||||||||||||
| 132 | 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: | - | ||||||||||||
| 133 | #pragma GCC diagnostic ignored "-Wattributes" | - | ||||||||||||
| 134 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - | ||||||||||||
| 135 | #pragma GCC diagnostic pop | - | ||||||||||||
| 136 | struct QPrivateSignal {}; | - | ||||||||||||
| 137 | - | |||||||||||||
| 138 | - | |||||||||||||
| 139 | - | |||||||||||||
| 140 | - | |||||||||||||
| 141 | - | |||||||||||||
| 142 | public: | - | ||||||||||||
| 143 | QQmlApplication(QObject* parent=nullptr); | - | ||||||||||||
| 144 | - | |||||||||||||
| 145 | QStringList args(); | - | ||||||||||||
| 146 | - | |||||||||||||
| 147 | QString name() const; | - | ||||||||||||
| 148 | QString version() const; | - | ||||||||||||
| 149 | QString organization() const; | - | ||||||||||||
| 150 | QString domain() const; | - | ||||||||||||
| 151 | - | |||||||||||||
| 152 | public : | - | ||||||||||||
| 153 | void setName(const QString &arg); | - | ||||||||||||
| 154 | void setVersion(const QString &arg); | - | ||||||||||||
| 155 | void setOrganization(const QString &arg); | - | ||||||||||||
| 156 | void setDomain(const QString &arg); | - | ||||||||||||
| 157 | - | |||||||||||||
| 158 | public : | - | ||||||||||||
| 159 | void aboutToQuit(); | - | ||||||||||||
| 160 | - | |||||||||||||
| 161 | void nameChanged(); | - | ||||||||||||
| 162 | void versionChanged(); | - | ||||||||||||
| 163 | void organizationChanged(); | - | ||||||||||||
| 164 | void domainChanged(); | - | ||||||||||||
| 165 | - | |||||||||||||
| 166 | protected: | - | ||||||||||||
| 167 | QQmlApplication(QQmlApplicationPrivate &dd, QObject* parent=nullptr); | - | ||||||||||||
| 168 | - | |||||||||||||
| 169 | private: | - | ||||||||||||
| 170 | QQmlApplication(const QQmlApplication &) = delete; QQmlApplication &operator=(const QQmlApplication &) = delete; | - | ||||||||||||
| 171 | inline QQmlApplicationPrivate* d_func() { return executed 10 times by 2 tests: reinterpret_cast<QQmlApplicationPrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<QQmlApplicationPrivate *>(qGetPtrHelper(d_ptr));Executed by:
executed 10 times by 2 tests: } inline const QQmlApplicationPrivate* d_func() const { returnreturn reinterpret_cast<QQmlApplicationPrivate *>(qGetPtrHelper(d_ptr));Executed by:
never executed: reinterpret_cast<const QQmlApplicationPrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<const QQmlApplicationPrivate *>(qGetPtrHelper(d_ptr));never executed: } friend class QQmlApplicationPrivate;return reinterpret_cast<const QQmlApplicationPrivate *>(qGetPtrHelper(d_ptr)); | 0-10 | ||||||||||||
| 172 | }; | - | ||||||||||||
| 173 | - | |||||||||||||
| 174 | class QQmlApplicationPrivate : public QObjectPrivate | - | ||||||||||||
| 175 | { | - | ||||||||||||
| 176 | inline QQmlApplication* q_func() { return static_cast<QQmlApplication *>(q_ptr); } inline const QQmlApplication* q_func() const { return static_cast<const QQmlApplication *>(q_ptr); } friend class QQmlApplication; | - | ||||||||||||
| 177 | public: | - | ||||||||||||
| 178 | QQmlApplicationPrivate() { | - | ||||||||||||
| 179 | argsInit = false; | - | ||||||||||||
| 180 | } executed 18 times by 6 tests: end of blockExecuted by:
| 18 | ||||||||||||
| 181 | - | |||||||||||||
| 182 | bool argsInit; | - | ||||||||||||
| 183 | QStringList args; | - | ||||||||||||
| 184 | }; | - | ||||||||||||
| 185 | - | |||||||||||||
| 186 | struct QQmlSourceLocation | - | ||||||||||||
| 187 | { | - | ||||||||||||
| 188 | QQmlSourceLocation() {} | - | ||||||||||||
| 189 | QQmlSourceLocation(const QString &sourceFile, quint16 line, quint16 column) | - | ||||||||||||
| 190 | : sourceFile(sourceFile), line(line), column(column) {} executed 98 times by 8 tests: end of blockExecuted by:
| 98 | ||||||||||||
| 191 | QString sourceFile; | - | ||||||||||||
| 192 | quint16 line = 0; | - | ||||||||||||
| 193 | quint16 column = 0; | - | ||||||||||||
| 194 | }; | - | ||||||||||||
| 195 | - | |||||||||||||
| 196 | - | |||||||||||||
| Switch to Source code | Preprocessed file |