mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-21 08:40:53 +01:00
Wrap code for better readability
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user