Wrap code for better readability

This commit is contained in:
Simon De Backer
2020-09-07 22:03:40 +02:00
parent 8ee38fab9e
commit 5d92393ee7
202 changed files with 4031 additions and 2153 deletions

View File

@@ -20,12 +20,29 @@
/**
@see Documentation Qt pour QMessageBox::critical
*/
QMessageBox::StandardButton QET::QetMessageBox::critical (QWidget *parent, const QString &title, const QString &text, QMessageBox::StandardButtons buttons, QMessageBox::StandardButton defaultButton) {
QMessageBox::StandardButton QET::QetMessageBox::critical (
QWidget *parent,
const QString &title,
const QString &text,
QMessageBox::StandardButtons buttons,
QMessageBox::StandardButton defaultButton)
{
#ifdef Q_OS_MACOS
QMessageBox message_box(QMessageBox::Critical, title, text, buttons, parent, Qt::Sheet);
QMessageBox message_box(
QMessageBox::Critical,
title,
text,
buttons,
parent,
Qt::Sheet);
message_box.setWindowModality(Qt::WindowModal);
#else
QMessageBox message_box(QMessageBox::Critical, title, text, buttons, parent);
QMessageBox message_box(
QMessageBox::Critical,
title,
text,
buttons,
parent);
#endif
message_box.setDefaultButton(defaultButton);
@@ -35,12 +52,29 @@ QMessageBox::StandardButton QET::QetMessageBox::critical (QWidget *parent, con
/**
@see Documentation Qt pour QMessageBox::information
*/
QMessageBox::StandardButton QET::QetMessageBox::information(QWidget *parent, const QString &title, const QString &text, QMessageBox::StandardButtons buttons, QMessageBox::StandardButton defaultButton) {
QMessageBox::StandardButton QET::QetMessageBox::information(
QWidget *parent,
const QString &title,
const QString &text,
QMessageBox::StandardButtons buttons,
QMessageBox::StandardButton defaultButton)
{
#ifdef Q_OS_MACOS
QMessageBox message_box(QMessageBox::Information, title, text, buttons, parent, Qt::Sheet);
QMessageBox message_box(
QMessageBox::Information,
title,
text,
buttons,
parent,
Qt::Sheet);
message_box.setWindowModality(Qt::WindowModal);
#else
QMessageBox message_box(QMessageBox::Information, title, text, buttons, parent);
QMessageBox message_box(
QMessageBox::Information,
title,
text,
buttons,
parent);
#endif
message_box.setDefaultButton(defaultButton);
@@ -50,12 +84,29 @@ QMessageBox::StandardButton QET::QetMessageBox::information(QWidget *parent, con
/**
@see Documentation Qt pour QMessageBox::question
*/
QMessageBox::StandardButton QET::QetMessageBox::question (QWidget *parent, const QString &title, const QString &text, QMessageBox::StandardButtons buttons, QMessageBox::StandardButton defaultButton) {
QMessageBox::StandardButton QET::QetMessageBox::question (
QWidget *parent,
const QString &title,
const QString &text,
QMessageBox::StandardButtons buttons,
QMessageBox::StandardButton defaultButton)
{
#ifdef Q_OS_MACOS
QMessageBox message_box(QMessageBox::Question, title, text, buttons, parent, Qt::Sheet);
QMessageBox message_box(
QMessageBox::Question,
title,
text,
buttons,
parent,
Qt::Sheet);
message_box.setWindowModality(Qt::WindowModal);
#else
QMessageBox message_box(QMessageBox::Question, title, text, buttons, parent);
QMessageBox message_box(
QMessageBox::Question,
title,
text,
buttons,
parent);
#endif
message_box.setDefaultButton(defaultButton);
@@ -65,12 +116,29 @@ QMessageBox::StandardButton QET::QetMessageBox::question (QWidget *parent, con
/**
@see Documentation Qt pour QMessageBox::warning
*/
QMessageBox::StandardButton QET::QetMessageBox::warning (QWidget *parent, const QString &title, const QString &text, QMessageBox::StandardButtons buttons, QMessageBox::StandardButton defaultButton) {
QMessageBox::StandardButton QET::QetMessageBox::warning (
QWidget *parent,
const QString &title,
const QString &text,
QMessageBox::StandardButtons buttons,
QMessageBox::StandardButton defaultButton)
{
#ifdef Q_OS_MACOS
QMessageBox message_box(QMessageBox::Warning, title, text, buttons, parent, Qt::Sheet);
QMessageBox message_box(
QMessageBox::Warning,
title,
text,
buttons,
parent,
Qt::Sheet);
message_box.setWindowModality(Qt::WindowModal);
#else
QMessageBox message_box(QMessageBox::Warning, title, text, buttons, parent);
QMessageBox message_box(
QMessageBox::Warning,
title,
text,
buttons,
parent);
#endif
message_box.setDefaultButton(defaultButton);