modify:优化

This commit is contained in:
TianZD
2026-04-26 10:49:25 +08:00
parent 927d1f68a2
commit e5d446b3aa
5 changed files with 237 additions and 275 deletions
+9 -3
View File
@@ -3,10 +3,16 @@
#include <QtCore/qglobal.h>
#if defined(NUMKEYBOARD_LIBRARY)
#define NUMKEYBOARD_EXPORT Q_DECL_EXPORT
// 如果定义了 NUMKEYBOARD_STATIC,则宏为空(适用于直接引入源码编译)
#if defined(NUMKEYBOARD_STATIC)
# define NUMKEYBOARD_EXPORT
#else
#define NUMKEYBOARD_EXPORT Q_DECL_IMPORT
// 如果没定义 STATIC,则在“写库”和“用库”之间切换
# if defined(NUMKEYBOARD_LIBRARY)
# define NUMKEYBOARD_EXPORT Q_DECL_EXPORT
# else
# define NUMKEYBOARD_EXPORT Q_DECL_IMPORT
# endif
#endif
#endif // NUMKEYBOARD_GLOBAL_H