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:
parent
953b7339d6
commit
7c876b9cdc
@ -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
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user