From d13f6bb870cdda71257f665367be8ef9fca86255 Mon Sep 17 00:00:00 2001 From: Mikaƫl Capelle Date: Tue, 17 May 2022 11:47:01 +0200 Subject: Apply clang-format. --- src/messagedialog.h | 48 +++++++++++++++++++++++++++--------------------- 1 file changed, 27 insertions(+), 21 deletions(-) (limited to 'src/messagedialog.h') diff --git a/src/messagedialog.h b/src/messagedialog.h index 0dbc0e6e..d5bb0c57 100644 --- a/src/messagedialog.h +++ b/src/messagedialog.h @@ -22,8 +22,9 @@ along with Mod Organizer. If not, see . #include -namespace Ui { - class MessageDialog; +namespace Ui +{ +class MessageDialog; } /** @@ -32,36 +33,41 @@ namespace Ui { **/ class MessageDialog : public QDialog { - Q_OBJECT + Q_OBJECT public: - /** - * @brief constructor - * - * @param text the message to display - * @param reference parent widget. This will also be used to position the message at the bottom center of the dialog - **/ - - explicit MessageDialog(const QString &text, QWidget *reference); + /** + * @brief constructor + * + * @param text the message to display + * @param reference parent widget. This will also be used to position the message at + *the bottom center of the dialog + **/ + + explicit MessageDialog(const QString& text, QWidget* reference); ~MessageDialog(); /** - * factory function for message dialogs. This can be used as a fire-and-forget. The message - * will automatically positioned to the reference dialog and get a reasonable view time + * factory function for message dialogs. This can be used as a fire-and-forget. The + *message will automatically positioned to the reference dialog and get a reasonable + *view time * - * @param text the text to display. The length of this text is used to determine how long the dialog is to be shown - * @param reference the reference widget on top of which the message should be displayed - * @param true if the message should bring MO to front to ensure this message is visible + * @param text the text to display. The length of this text is used to determine how + *long the dialog is to be shown + * @param reference the reference widget on top of which the message should be + *displayed + * @param true if the message should bring MO to front to ensure this message is + *visible **/ - static void showMessage(const QString &text, QWidget *reference, bool bringToFront = true); + static void showMessage(const QString& text, QWidget* reference, + bool bringToFront = true); protected: - - virtual void resizeEvent(QResizeEvent *event); + virtual void resizeEvent(QResizeEvent* event); private: - Ui::MessageDialog *ui; + Ui::MessageDialog* ui; }; -#endif // MESSAGEDIALOG_H +#endif // MESSAGEDIALOG_H -- cgit v1.3.1