Skip to content

Commit 0164281

Browse files
committed
refactor: 整理Qt项目配置并优化SqliteWAL模块
1. 合并所有.pro文件的QT模块声明,简化跨版本配置 2. 重构SqliteWAL模块:移除旧main.cc,新增单元测试,替换宏为函数,优化代码风格与线程安全 3. 修正导航进度条的冗余变量判断 4. 更新C++现代编程规范文档
1 parent f831e4c commit 0164281

27 files changed

Lines changed: 491 additions & 156 deletions

File tree

.trae/rules/cpp-modern.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
-`concepts` 约束模板,替代 SFINAE
66
-`std::format` 替代 printf/iostream 格式化
77
- 优先用 `std::ranges` 算法替代手写循环
8-
-`std::jthread` 替代 `std::thread`(自动 join)
98
- 禁止裸 `new`/`delete`;用 `std::make_unique`/`std::make_shared`
109
- 适当标记 `[[nodiscard]]``[[deprecated]]`
1110
- 用结构化绑定处理多返回值

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 \

0 commit comments

Comments
 (0)