1
0
mirror of https://gitee.com/drabel/LibQQt.git synced 2025-01-04 10:18:44 +08:00

fix math ml export

This commit is contained in:
tianduanrui 2017-11-23 19:47:14 +08:00
parent 953b7339d6
commit 7c876b9cdc
2 changed files with 22 additions and 14 deletions

View File

@ -64,20 +64,19 @@
class MmlDocument;
#if defined(Q_WS_WIN)
# if !defined(QT_QTMMLWIDGET_EXPORT) && !defined(QT_QTMMLWIDGET_IMPORT)
# define QT_QTMMLWIDGET_EXPORT
# elif defined(QT_QTMMLWIDGET_IMPORT)
# if defined(QT_QTMMLWIDGET_EXPORT)
# undef QT_QTMMLWIDGET_EXPORT
# endif
# define QT_QTMMLWIDGET_EXPORT __declspec(dllimport)
# elif defined(QT_QTMMLWIDGET_EXPORT)
# undef QT_QTMMLWIDGET_EXPORT
# define QT_QTMMLWIDGET_EXPORT __declspec(dllexport)
# endif
#include <QtCore/qglobal.h>
#if defined(Q_OS_WIN)
//dynamic and static are different
#if defined(QT_QTMMLWIDGET_LIBRARY)
# define QT_QTMMLWIDGET_EXPORT Q_DECL_EXPORT
#elif defined(QT_QTMMLWIDGET_STATIC_LIBRARY)
# define QT_QTMMLWIDGET_EXPORT
#else
# define QT_QTMMLWIDGET_EXPORT
# define QT_QTMMLWIDGET_EXPORT Q_DECL_IMPORT
#endif
#else
//dynamic and static are equal to each other
# define QT_QTMMLWIDGET_EXPORT
#endif
class QT_QTMMLWIDGET_EXPORT QtMmlWidget : public QFrame

View File

@ -42,9 +42,18 @@ contains (DEFINES, __EXQUISITE__) {
}
contains (DEFINES, __EXQUISITE__) {
#gumbo widget
#mathml widget
#DEFINES += __MATHSUPPORT__
contains (DEFINES, __MATHSUPPORT__) {
contains(QKIT_PRIVATE, WIN32|WIN64) {
#mathml
contains (DEFINES, QQT_LIBRARY) {
DEFINES += QT_QTMMLWIDGET_LIBRARY
} else: contains (DEFINES, QQT_STATIC_LIBRARY) {
DEFINES += QT_QTMMLWIDGET_STATIC_LIBRARY
}
}
SOURCES += $$PWD/exquisite/mathml/qtmmlwidget.cpp
HEADERS += $$PWD/exquisite/mathml/qtmmlwidget.h
}