Mercurial > minori
annotate include/gui/dialog/dialog.h @ 377:1b0b8e746d83 default tip
CI/windows: stupid msys2
author | Paper <paper@tflc.us> |
---|---|
date | Fri, 25 Jul 2025 12:40:25 -0400 |
parents | 6d37a998cf91 |
children |
rev | line source |
---|---|
368
6d37a998cf91
gui/dialog: consolidate win32 dark theme cruft into a single class
Paper <paper@tflc.us>
parents:
diff
changeset
|
1 #ifndef MINORI_GUI_DIALOG_DIALOG_H_ |
6d37a998cf91
gui/dialog: consolidate win32 dark theme cruft into a single class
Paper <paper@tflc.us>
parents:
diff
changeset
|
2 #define MINORI_GUI_DIALOG_DIALOG_H_ |
6d37a998cf91
gui/dialog: consolidate win32 dark theme cruft into a single class
Paper <paper@tflc.us>
parents:
diff
changeset
|
3 |
6d37a998cf91
gui/dialog: consolidate win32 dark theme cruft into a single class
Paper <paper@tflc.us>
parents:
diff
changeset
|
4 /* generic dialog widget; this abstracts away the win32 title bar hackery */ |
6d37a998cf91
gui/dialog: consolidate win32 dark theme cruft into a single class
Paper <paper@tflc.us>
parents:
diff
changeset
|
5 #include <QDialog> |
6d37a998cf91
gui/dialog: consolidate win32 dark theme cruft into a single class
Paper <paper@tflc.us>
parents:
diff
changeset
|
6 |
6d37a998cf91
gui/dialog: consolidate win32 dark theme cruft into a single class
Paper <paper@tflc.us>
parents:
diff
changeset
|
7 class Dialog : public QDialog { |
6d37a998cf91
gui/dialog: consolidate win32 dark theme cruft into a single class
Paper <paper@tflc.us>
parents:
diff
changeset
|
8 Q_OBJECT |
6d37a998cf91
gui/dialog: consolidate win32 dark theme cruft into a single class
Paper <paper@tflc.us>
parents:
diff
changeset
|
9 |
6d37a998cf91
gui/dialog: consolidate win32 dark theme cruft into a single class
Paper <paper@tflc.us>
parents:
diff
changeset
|
10 public: |
6d37a998cf91
gui/dialog: consolidate win32 dark theme cruft into a single class
Paper <paper@tflc.us>
parents:
diff
changeset
|
11 Dialog(QWidget *parent = nullptr) : QDialog(parent) {} |
6d37a998cf91
gui/dialog: consolidate win32 dark theme cruft into a single class
Paper <paper@tflc.us>
parents:
diff
changeset
|
12 |
6d37a998cf91
gui/dialog: consolidate win32 dark theme cruft into a single class
Paper <paper@tflc.us>
parents:
diff
changeset
|
13 protected: |
6d37a998cf91
gui/dialog: consolidate win32 dark theme cruft into a single class
Paper <paper@tflc.us>
parents:
diff
changeset
|
14 void showEvent(QShowEvent *event) override; |
6d37a998cf91
gui/dialog: consolidate win32 dark theme cruft into a single class
Paper <paper@tflc.us>
parents:
diff
changeset
|
15 }; |
6d37a998cf91
gui/dialog: consolidate win32 dark theme cruft into a single class
Paper <paper@tflc.us>
parents:
diff
changeset
|
16 |
6d37a998cf91
gui/dialog: consolidate win32 dark theme cruft into a single class
Paper <paper@tflc.us>
parents:
diff
changeset
|
17 #endif // MINORI_GUI_DIALOG_DIALOG_H_ |