Skip to content

Commit b133d02

Browse files
committed
build: 统一整理Qt项目配置并重构SqliteWAL模块
1. 统一多个子项目的.pro文件,合并QT模块声明简化配置 2. 重构SqliteWAL模块:替换宏定义为标准函数,添加单元测试支持,修复类型错误,移除废弃的main.cc并改用Qt Test框架 3. 优化Sqlite工具类的线程安全和路径处理逻辑
1 parent f831e4c commit b133d02

26 files changed

Lines changed: 481 additions & 155 deletions

File tree

src/AutoStartManager/AutoStartManager.pro

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
include(../../qmake/ProjectSettings.pri)
22

3-
QT += core gui
4-
5-
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
3+
QT += core gui widgets
64

75
SOURCES += \
86
main.cc \

src/Battery/Battery.pro

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
include(../../qmake/ProjectSettings.pri)
22

3-
QT += core gui
4-
5-
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
3+
QT += core gui widgets
64

75
SOURCES += \
86
batterywidget.cc \

src/Bubble/Bubble.pro

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
include(../../qmake/ProjectSettings.pri)
22

3-
QT += core gui
4-
5-
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
3+
QT += core gui widgets
64

75
SOURCES += \
86
bubblewidget.cc \

src/ButtonIconStateManager/ButtonIconStateManager.pro

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
include(../../qmake/ProjectSettings.pri)
22

3-
QT += core gui
4-
5-
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
3+
QT += core gui widgets
64

75
SOURCES += \
86
buttoniconstatemanager.cc \

src/Carousel3DView/Carousel3DView.pro

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
include(../../qmake/ProjectSettings.pri)
22

3-
QT += core gui
4-
5-
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
3+
QT += core gui widgets
64

75
SOURCES += \
86
carousel3dview.cc \

src/Chart/Chart.pro

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
include(../../qmake/ProjectSettings.pri)
22

3-
QT += core gui charts
4-
5-
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
3+
QT += core gui charts widgets
64

75
SOURCES += \
86
areachart.cc \

src/CheckableTreeItem/CheckableTreeItem.pro

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
include(../../qmake/ProjectSettings.pri)
22

3-
QT += core gui
4-
5-
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
3+
QT += core gui widgets
64

75
SOURCES += \
86
checkabletreeitem.cc \

src/CircularProgress/CircularProgress.pro

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
include(../../qmake/ProjectSettings.pri)
22

3-
QT += core gui
4-
5-
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
3+
QT += core gui widgets
64

75
SOURCES += \
86
circularprogress.cc \

src/Clock/Clock.pro

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
include(../../qmake/ProjectSettings.pri)
22

3-
QT += core gui
4-
5-
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
3+
QT += core gui widgets
64

75
SOURCES += \
86
clockwidget.cc \

src/DashBoard/DashBoard.pro

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
include(../../qmake/ProjectSettings.pri)
22

3-
QT += core gui
4-
5-
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
3+
QT += core gui widgets
64

75
SOURCES += \
86
dashboardwidget.cc \

0 commit comments

Comments
 (0)