Mercurial > minori
annotate include/gui/dialog/dialog.h @ 380:861368fd42ff
about: update email address
| author | Paper <paper@tflc.us> |
|---|---|
| date | Thu, 06 Nov 2025 01:12:39 -0500 |
| 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_ |
