mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-27 02:49:00 +02:00
[meta] clang-format literally all of the Qt code (#3706)
I'm tired of dealing with this tbh Signed-off-by: crueter <crueter@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3706 Reviewed-by: Lizzie <lizzie@eden-emu.dev>
This commit is contained in:
parent
769edbfea3
commit
8678cb06eb
107 changed files with 1457 additions and 1737 deletions
|
|
@ -1,11 +1,11 @@
|
|||
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
#include <QAbstractButton>
|
||||
#include <QFileDialog>
|
||||
#include <QInputDialog>
|
||||
#include <QMessageBox>
|
||||
#include <QProgressDialog>
|
||||
#include <QAbstractButton>
|
||||
|
||||
#include "libqt_common.h"
|
||||
#include "qt_common/abstract/frontend.h"
|
||||
|
|
@ -14,10 +14,11 @@
|
|||
|
||||
namespace QtCommon::Frontend {
|
||||
|
||||
StandardButton ShowMessage(
|
||||
Icon icon, const QString &title, const QString &text, StandardButtons buttons, QObject *parent)
|
||||
{
|
||||
QMessageBox *box = new QMessageBox(QMessageBox::Icon(int(icon)), title, text, QMessageBox::StandardButtons(int(buttons)), (QWidget *) parent);
|
||||
StandardButton ShowMessage(Icon icon, const QString& title, const QString& text,
|
||||
StandardButtons buttons, QObject* parent) {
|
||||
QMessageBox* box =
|
||||
new QMessageBox(QMessageBox::Icon(int(icon)), title, text,
|
||||
QMessageBox::StandardButtons(int(buttons)), (QWidget*)parent);
|
||||
return StandardButton(box->exec());
|
||||
}
|
||||
|
||||
|
|
@ -81,15 +82,15 @@ void WidgetsProgressDialog::show() {
|
|||
m_dialog->show();
|
||||
}
|
||||
|
||||
std::unique_ptr<QtProgressDialog> newProgressDialog(const QString& labelText, const QString& cancelButtonText,
|
||||
int minimum, int maximum, Qt::WindowFlags f) {
|
||||
std::unique_ptr<QtProgressDialog> newProgressDialog(const QString& labelText,
|
||||
const QString& cancelButtonText, int minimum,
|
||||
int maximum, Qt::WindowFlags f) {
|
||||
return std::make_unique<WidgetsProgressDialog>(labelText, cancelButtonText, minimum, maximum,
|
||||
(QWidget*)rootObject, f);
|
||||
}
|
||||
|
||||
QtProgressDialog* newProgressDialogPtr(const QString& labelText, const QString& cancelButtonText,
|
||||
int minimum, int maximum,
|
||||
Qt::WindowFlags f) {
|
||||
int minimum, int maximum, Qt::WindowFlags f) {
|
||||
return new WidgetsProgressDialog(labelText, cancelButtonText, minimum, maximum,
|
||||
(QWidget*)rootObject, f);
|
||||
}
|
||||
|
|
@ -115,5 +116,4 @@ const QString GetTextInput(const QString& title, const QString& caption,
|
|||
return QInputDialog::getText(rootObject, title, caption, QLineEdit::Normal, defaultText);
|
||||
}
|
||||
|
||||
|
||||
} // namespace QtCommon::Frontend
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue