-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 在 `CMakeLists.txt` 中将项目版本从 `0.0.1` 更新为 `0.1.1`,以反映项目的最新状态。 - 更新了 `README.md` 文件,改进了代码结构说明,移除了旧的插件目录,增加了新的插件和资源描述。 - 修改了 `common.pri` 文件,更新了版本号和版权年份,确保法律信息的准确性。 - 在 `breakpad.cc` 中,改进了崩溃路径的获取方法,使其更加符合当前项目结构。 - 更新了 `Qt-App` 和 `CrashReport` 的版本信息资源文件,以及相应的版权声明。 - 移除了不再需要的 `serialplugin` 和 `tcpplugin` 插件,同时新增了 `aboutplugin`, `guiplugin`, `helloplugin`, 和 `systeminfoplugin` 插件。 - 更新了 `vcpkg.json` 文件,将依赖项 `breakpad` 保留,同时更新了项目版本。 - 对 `qss` 文件进行了重构,移除了不再使用的样式表,增加了新的 `specific.css` 来处理特定组件的样式。 - 更新了 `utils` 库,增加了 `appinfo.hpp` 和 `appinfo.cc` 来集中管理应用程序信息,如版本和版权。 - 在 `utils` 库中,引入了 `quitApplication` 函数,提供了一个统一的应用程序退出方法。
- Loading branch information
Showing
94 changed files
with
1,613 additions
and
3,173 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 |
---|---|---|
|
@@ -27,7 +27,7 @@ endif() | |
|
||
project( | ||
Qt-App | ||
VERSION 0.0.1 | ||
VERSION 0.1.1 | ||
LANGUAGES CXX) | ||
|
||
set(CMAKE_CXX_STANDARD 17) | ||
|
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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 |
---|---|---|
|
@@ -18,7 +18,7 @@ void openDir(const QString &path) | |
class CrashWidgets::CrashWidgetsPrivate | ||
{ | ||
public: | ||
CrashWidgetsPrivate(CrashWidgets *q) | ||
explicit CrashWidgetsPrivate(CrashWidgets *q) | ||
: q_ptr(q) | ||
{ | ||
auto appArgs = qApp->arguments(); | ||
|
@@ -45,7 +45,7 @@ CrashWidgets::CrashWidgets(QWidget *parent) | |
resize(450, 450); | ||
} | ||
|
||
CrashWidgets::~CrashWidgets() {} | ||
CrashWidgets::~CrashWidgets() = default; | ||
|
||
void CrashWidgets::onOpenCrashPath() | ||
{ | ||
|
@@ -58,24 +58,24 @@ void CrashWidgets::onRestart() | |
QProcess::startDetached(d_ptr->appPath, d_ptr->args); | ||
} | ||
|
||
void CrashWidgets::onQuit() | ||
{ | ||
QMetaObject::invokeMethod(qApp, &QApplication::quit, Qt::QueuedConnection); | ||
} | ||
|
||
void CrashWidgets::setupUI() | ||
{ | ||
auto crashButton = new QPushButton(tr("Path of Crash File"), this); | ||
auto restartButton = new QPushButton(tr("Restart"), this); | ||
auto closeButton = new QPushButton(tr("Close"), this); | ||
auto *crashButton = new QPushButton(tr("Path of Crash File"), this); | ||
auto *restartButton = new QPushButton(tr("Restart"), this); | ||
auto *closeButton = new QPushButton(tr("Close"), this); | ||
crashButton->setObjectName("BlueButton"); | ||
restartButton->setObjectName("BlueButton"); | ||
closeButton->setObjectName("BlueButton"); | ||
connect(crashButton, &QPushButton::clicked, this, &CrashWidgets::onOpenCrashPath); | ||
connect(restartButton, &QPushButton::clicked, this, &CrashWidgets::onRestart); | ||
connect(closeButton, &QPushButton::clicked, this, &CrashWidgets::onQuit); | ||
|
||
auto crashLabel = new QLabel(this); | ||
connect( | ||
closeButton, | ||
&QPushButton::clicked, | ||
this, | ||
[] { Utils::quitApplication(); }, | ||
Qt::QueuedConnection); | ||
|
||
auto *crashLabel = new QLabel(this); | ||
crashLabel->setObjectName("CrashLabel"); | ||
crashLabel->setWordWrap(true); | ||
crashLabel->setAlignment(Qt::AlignCenter); | ||
|
@@ -87,8 +87,8 @@ void CrashWidgets::setupUI() | |
"Contact Me - Email: \n" | ||
"[email protected]")); | ||
|
||
auto widget = new QWidget(this); | ||
auto layout = new QVBoxLayout(widget); | ||
auto *widget = new QWidget(this); | ||
auto *layout = new QVBoxLayout(widget); | ||
layout->addStretch(); | ||
layout->addWidget(crashLabel); | ||
layout->addStretch(); | ||
|
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.