summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2022-12-04 14:36:22 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-12-09 09:45:16 +0000
commit6d5a904bb92b0d6b0235b20d8479dbf377f36422 (patch)
tree4f1b54798dd5a918ebd8f4c6989a2675ad8bf08f
parent4270bc75c5ce57c6ecfdb5be983cc292b886805d (diff)
Don't include QML headers in C++ API
The qtexttospeech.h including the qqmlintegration header is unnecessary, and potentially wrong. While the C++-only hello_speech example builds fine when using cmake even with the include, building the same example using qmake fails. fd028a8041e3bb860c088f005bc70d0b546a7c7b implemented declarative type registration through foreign types, making the tagging of the public QTextToSpeech C++ class as a QML_ELEMENT unnecessary. Fixes: QTBUG-108773 Change-Id: Ie7ba16a3b74dcc22365064fa1b67bec5b64af983 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> (cherry picked from commit 9f83f1913cc887d009672fc6b7681f2eb3fe73a5) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/tts/qtexttospeech.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/tts/qtexttospeech.h b/src/tts/qtexttospeech.h
index 82d4f83..a5e9cb4 100644
--- a/src/tts/qtexttospeech.h
+++ b/src/tts/qtexttospeech.h
@@ -14,15 +14,12 @@
#include <QtCore/qlocale.h>
#include <QtTextToSpeech/qvoice.h>
-#include <QtQmlIntegration/qqmlintegration.h>
-
QT_BEGIN_NAMESPACE
class QTextToSpeechPrivate;
class Q_TEXTTOSPEECH_EXPORT QTextToSpeech : public QObject
{
Q_OBJECT
- QML_ELEMENT
Q_PROPERTY(QString engine READ engine WRITE setEngine NOTIFY engineChanged)
Q_PROPERTY(State state READ state NOTIFY stateChanged)
Q_PROPERTY(double volume READ volume WRITE setVolume NOTIFY volumeChanged)