summaryrefslogtreecommitdiff
path: root/src/messagedialog.h
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2022-05-17 11:47:01 +0200
committerMikaël Capelle <capelle.mikael@gmail.com>2023-07-09 17:20:40 +0200
commitd13f6bb870cdda71257f665367be8ef9fca86255 (patch)
tree52e214718478f1e52856572f5aa1a2ac58537f9f /src/messagedialog.h
parent86bb01ba9eac879d3685c439ac9da0028bc4bc80 (diff)
Apply clang-format.
Diffstat (limited to 'src/messagedialog.h')
-rw-r--r--src/messagedialog.h48
1 files changed, 27 insertions, 21 deletions
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 <http://www.gnu.org/licenses/>.
#include <QDialog>
-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