format code

This commit is contained in:
Malte Jürgens 2023-04-24 22:41:36 +02:00
parent b582584c69
commit 6c9b76ed90
No known key found for this signature in database
GPG Key ID: D29FBD5F93C0CFC3
1 changed files with 15 additions and 18 deletions

View File

@ -7,10 +7,10 @@
#include <QApplication> #include <QApplication>
#include <QCommandLineParser> #include <QCommandLineParser>
#include <QLocalServer>
#include <QLocalSocket>
#include <QLoggingCategory> #include <QLoggingCategory>
#include <QMessageBox> #include <QMessageBox>
#include <QLocalSocket>
#include <QLocalServer>
void showErrorMessage(const char *text) { void showErrorMessage(const char *text) {
QMessageBox msgBox; QMessageBox msgBox;
@ -19,15 +19,12 @@ void showErrorMessage(const char* text) {
msgBox.setText(text); msgBox.setText(text);
msgBox.setStandardButtons(QMessageBox::Ok); msgBox.setStandardButtons(QMessageBox::Ok);
msgBox.setDefaultButton(QMessageBox::Ok); msgBox.setDefaultButton(QMessageBox::Ok);
msgBox.setWindowIcon( msgBox.setWindowIcon(QIcon(":assets/de.shorsh.discord-screenaudio.png"));
QIcon(":assets/de.shorsh.discord-screenaudio.png"));
msgBox.exec(); msgBox.exec();
} }
bool isProgramRunning(const QString &program_name) {
bool isProgramRunning(const QString& program_name)
{
QLocalSocket socket; QLocalSocket socket;
socket.connectToServer(program_name); socket.connectToServer(program_name);
if (socket.waitForConnected()) { if (socket.waitForConnected()) {