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; class MmlDocument;
#if defined(Q_WS_WIN) #include <QtCore/qglobal.h>
# if !defined(QT_QTMMLWIDGET_EXPORT) && !defined(QT_QTMMLWIDGET_IMPORT) #if defined(Q_OS_WIN)
# define QT_QTMMLWIDGET_EXPORT //dynamic and static are different
# elif defined(QT_QTMMLWIDGET_IMPORT) #if defined(QT_QTMMLWIDGET_LIBRARY)
# if defined(QT_QTMMLWIDGET_EXPORT) # define QT_QTMMLWIDGET_EXPORT Q_DECL_EXPORT
# undef QT_QTMMLWIDGET_EXPORT #elif defined(QT_QTMMLWIDGET_STATIC_LIBRARY)
# endif # define QT_QTMMLWIDGET_EXPORT
# define QT_QTMMLWIDGET_EXPORT __declspec(dllimport)
# elif defined(QT_QTMMLWIDGET_EXPORT)
# undef QT_QTMMLWIDGET_EXPORT
# define QT_QTMMLWIDGET_EXPORT __declspec(dllexport)
# endif
#else #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 #endif
class QT_QTMMLWIDGET_EXPORT QtMmlWidget : public QFrame class QT_QTMMLWIDGET_EXPORT QtMmlWidget : public QFrame

View File

@ -42,9 +42,18 @@ contains (DEFINES, __EXQUISITE__) {
} }
contains (DEFINES, __EXQUISITE__) { contains (DEFINES, __EXQUISITE__) {
#gumbo widget #mathml widget
#DEFINES += __MATHSUPPORT__ #DEFINES += __MATHSUPPORT__
contains (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 SOURCES += $$PWD/exquisite/mathml/qtmmlwidget.cpp
HEADERS += $$PWD/exquisite/mathml/qtmmlwidget.h HEADERS += $$PWD/exquisite/mathml/qtmmlwidget.h
} }