-
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.
- Loading branch information
Showing
94 changed files
with
1,603 additions
and
3,170 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
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.