diff options
-rw-r--r-- | examples/speech/hello_speak/hello_speak.pro | 1 | ||||
-rw-r--r-- | src/tts/qtexttospeech_global.h | 10 |
2 files changed, 8 insertions, 3 deletions
diff --git a/examples/speech/hello_speak/hello_speak.pro b/examples/speech/hello_speak/hello_speak.pro index ca5ecc4..e770adf 100644 --- a/examples/speech/hello_speak/hello_speak.pro +++ b/examples/speech/hello_speak/hello_speak.pro @@ -1,6 +1,7 @@ TEMPLATE = app QT += widgets texttospeech +requires(qtConfig(combobox)) SOURCES = main.cpp \ mainwindow.cpp diff --git a/src/tts/qtexttospeech_global.h b/src/tts/qtexttospeech_global.h index 9b9eb15..3f3712d 100644 --- a/src/tts/qtexttospeech_global.h +++ b/src/tts/qtexttospeech_global.h @@ -43,10 +43,14 @@ QT_BEGIN_NAMESPACE -#if defined(QTEXTTOSPEECH_LIBRARY) -# define QTEXTTOSPEECH_EXPORT Q_DECL_EXPORT +#ifndef QT_STATIC +# if defined(QTEXTTOSPEECH_LIBRARY) +# define QTEXTTOSPEECH_EXPORT Q_DECL_EXPORT +# else +# define QTEXTTOSPEECH_EXPORT Q_DECL_IMPORT +# endif #else -# define QTEXTTOSPEECH_EXPORT Q_DECL_IMPORT +# define QTEXTTOSPEECH_EXPORT #endif QT_END_NAMESPACE |