-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Update Qt Module Names and Refactor HttpClient]: 更新 Qt 模块名称并重构 HttpC…
…lient 将所有 CMakeLists.txt 文件中的 Qt6 模块名称更新为 Qt 模块名称,以适应新的 Qt 版本. 在 HttpClient 类中增加了新的上传方法 upload_put 和 upload_post,支持不同类型的上传操作. 重构了 HttpClient 的测试代码,增加了对上传和下载功能的测试用例.
- Loading branch information
Showing
37 changed files
with
442 additions
and
227 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,6 @@ | ||
set(PROJECT_SOURCES | ||
main.cpp | ||
mainwindow.cpp | ||
mainwindow.h | ||
batterywidget.h | ||
batterywidget.cpp) | ||
set(PROJECT_SOURCES main.cpp mainwindow.cpp mainwindow.h batterywidget.h | ||
batterywidget.cpp) | ||
|
||
qt_add_executable(Battery MANUAL_FINALIZATION ${PROJECT_SOURCES}) | ||
target_link_libraries(Battery PRIVATE Qt6::Widgets) | ||
target_link_libraries(Battery PRIVATE Qt::Widgets) | ||
qt_finalize_executable(Battery) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,6 @@ | ||
set(PROJECT_SOURCES | ||
main.cpp | ||
mainwindow.cpp | ||
mainwindow.h | ||
bubblewidget.h | ||
bubblewidget.cpp) | ||
set(PROJECT_SOURCES main.cpp mainwindow.cpp mainwindow.h bubblewidget.h | ||
bubblewidget.cpp) | ||
|
||
qt_add_executable(BubbleWindow MANUAL_FINALIZATION ${PROJECT_SOURCES}) | ||
target_link_libraries(BubbleWindow PRIVATE Qt6::Widgets) | ||
target_link_libraries(BubbleWindow PRIVATE Qt::Widgets) | ||
qt_finalize_executable(BubbleWindow) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,6 @@ | ||
set(PROJECT_SOURCES | ||
main.cc | ||
mainwindow.cc | ||
mainwindow.hpp | ||
checkboxstandarditem.hpp | ||
checkboxstandarditem.cc) | ||
set(PROJECT_SOURCES main.cc mainwindow.cc mainwindow.hpp | ||
checkboxstandarditem.hpp checkboxstandarditem.cc) | ||
|
||
qt_add_executable(CheckBoxStandardItem MANUAL_FINALIZATION ${PROJECT_SOURCES}) | ||
target_link_libraries(CheckBoxStandardItem PRIVATE Qt6::Widgets) | ||
qt_finalize_executable(CheckBoxStandardItem) | ||
target_link_libraries(CheckBoxStandardItem PRIVATE Qt::Widgets) | ||
qt_finalize_executable(CheckBoxStandardItem) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,6 @@ | ||
set(PROJECT_SOURCES | ||
main.cpp | ||
mainwindow.cpp | ||
mainwindow.h | ||
clockwidget.h | ||
clockwidget.cpp) | ||
set(PROJECT_SOURCES main.cpp mainwindow.cpp mainwindow.h clockwidget.h | ||
clockwidget.cpp) | ||
|
||
qt_add_executable(Clock MANUAL_FINALIZATION ${PROJECT_SOURCES}) | ||
target_link_libraries(Clock PRIVATE Qt6::Widgets) | ||
target_link_libraries(Clock PRIVATE Qt::Widgets) | ||
qt_finalize_executable(Clock) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,6 @@ | ||
set(PROJECT_SOURCES | ||
main.cpp | ||
mainwindow.cpp | ||
mainwindow.h | ||
dashboardwidget.h | ||
dashboardwidget.cpp) | ||
set(PROJECT_SOURCES main.cpp mainwindow.cpp mainwindow.h dashboardwidget.h | ||
dashboardwidget.cpp) | ||
|
||
qt_add_executable(DashBoard MANUAL_FINALIZATION ${PROJECT_SOURCES}) | ||
target_link_libraries(DashBoard PRIVATE Qt6::Widgets) | ||
target_link_libraries(DashBoard PRIVATE Qt::Widgets) | ||
qt_finalize_executable(DashBoard) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
set(PROJECT_SOURCES | ||
main.cpp | ||
mainwindow.cpp | ||
mainwindow.h | ||
draglistwidget.h | ||
draglistwidget.cpp | ||
droplistwidget.h | ||
droplistwidget.cpp) | ||
main.cpp | ||
mainwindow.cpp | ||
mainwindow.h | ||
draglistwidget.h | ||
draglistwidget.cpp | ||
droplistwidget.h | ||
droplistwidget.cpp) | ||
|
||
qt_add_executable(DragDrop MANUAL_FINALIZATION ${PROJECT_SOURCES}) | ||
target_link_libraries(DragDrop PRIVATE Qt6::Widgets) | ||
target_link_libraries(DragDrop PRIVATE Qt::Widgets) | ||
qt_finalize_executable(DragDrop) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
set(PROJECT_SOURCES | ||
main.cpp | ||
mainwindow.cpp | ||
mainwindow.h | ||
gridmodel.h | ||
gridmodel.cpp | ||
gridview.h | ||
gridview.cpp) | ||
main.cpp | ||
mainwindow.cpp | ||
mainwindow.h | ||
gridmodel.h | ||
gridmodel.cpp | ||
gridview.h | ||
gridview.cpp) | ||
|
||
qt_add_executable(GridViewModel MANUAL_FINALIZATION ${PROJECT_SOURCES}) | ||
target_link_libraries(GridViewModel PRIVATE Qt6::Widgets) | ||
target_link_libraries(GridViewModel PRIVATE Qt::Widgets) | ||
qt_finalize_executable(GridViewModel) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
set(PROJECT_SOURCES main.cpp httpclient.cc httpclient.hpp) | ||
|
||
qt_add_executable(HttpClient MANUAL_FINALIZATION ${PROJECT_SOURCES}) | ||
target_link_libraries(HttpClient PRIVATE Qt6::Network Qt6::Concurrent) | ||
target_link_libraries(HttpClient PRIVATE Qt::Network Qt::Concurrent Qt::Test) | ||
qt_finalize_executable(HttpClient) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
QT += core gui network | ||
QT += core gui network testlib | ||
|
||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.