1
0
mirror of https://gitee.com/drabel/LibQQt.git synced 2025-01-04 10:18:44 +08:00
This commit is contained in:
tianduanrui 2018-06-26 14:15:10 +08:00
parent 592d3b00f2
commit 5404ea71c6
4 changed files with 16 additions and 5 deletions

@ -1 +1 @@
Subproject commit f893631981d3f81dac14c19a45d1602980b38f74 Subproject commit c11f2392ed03cad916e0b44690454e00cb6c3f5c

View File

@ -135,9 +135,17 @@ contains(CONFIG, continue_build){
################################################################# #################################################################
##project environ ##project environ
################################################################# #################################################################
#build
message($${TARGET} build obj dir $$OBJECTS_DIR)
message($${TARGET} build moc dir $$MOC_DIR)
message($${TARGET} build uih dir $$UI_DIR)
message($${TARGET} build rcc dir $$RCC_DIR)
message($${TARGET} build dst dir $$DESTDIR)
#default #default
message ($${TARGET} QT $${QT}) message ($${TARGET} QT $${QT})
message ($${TARGET} config $${CONFIG})
message ($${TARGET} define $${DEFINES})
message ($${TARGET} pre link $${QMAKE_PRE_LINK}) message ($${TARGET} pre link $${QMAKE_PRE_LINK})
message ($${TARGET} post link $${QMAKE_POST_LINK}) message ($${TARGET} post link $${QMAKE_POST_LINK})
message ($${TARGET} config $${CONFIG})
message ($${TARGET} define $${DEFINES})

View File

@ -15,17 +15,19 @@ class QQTSHARED_EXPORT QQtTreeModel : public QStandardItemModel
public: public:
explicit QQtTreeModel(QObject* parent = 0); explicit QQtTreeModel(QObject* parent = 0);
//对于纯虚函数如果内部重写了MSVC14编译不过gcc可以编译过。
//对于虚函数带有返回值的必须返回否则MSVC14编译不过gcc可以编译过。
/** /**
* @brief query * @brief query
* @param condition * @param condition
* @return * @return
*/ */
virtual bool query(QString condition) = 0; virtual bool query(QString condition){ return false; }
/** /**
* @brief setFilePath * @brief setFilePath
* @param name * @param name
*/ */
virtual void setFilePath(QString name) = 0; virtual void setFilePath(QString name){}
signals: signals:

View File

@ -48,6 +48,7 @@ defineTest(add_defines_QQt){
#指定/mp编译选项编译器将使用并行编译同时起多个编译进程并行编译不同的cpp #指定/mp编译选项编译器将使用并行编译同时起多个编译进程并行编译不同的cpp
msvc:MSVC_CCFLAGS += /MP msvc:MSVC_CCFLAGS += /MP
#指出这个FLAG只能用于MSVC #指出这个FLAG只能用于MSVC
#指出DLL导入错误是因为环境变量设置错误不是这里引起的。修改设置重新编译还是错误build目录clean不干净手动删除干净。如果还是不行对源代码进行touch无法区分import和export的dll是编译器的错误。
msvc:QMAKE_CFLAGS += $${MSVC_CCFLAGS} msvc:QMAKE_CFLAGS += $${MSVC_CCFLAGS}
msvc:QMAKE_CXXFLAGS += $${MSVC_CCFLAGS} msvc:QMAKE_CXXFLAGS += $${MSVC_CCFLAGS}