Mercurial > minori
annotate include/gui/dialog/dialog.h @ 413:192da585a0a8 default tip
*: fix formatting
the clang-format file was broken andjust using LLVM defaults.
now it's fixed and is more in line with what I actually prefer my
code to look like -- esp. with regards to tabulators
| author | Paper <paper@tflc.us> |
|---|---|
| date | Sat, 25 Jul 2026 14:54:32 -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_ |
