Mercurial > minori
comparison include/gui/dialog/dialog.h @ 368:6d37a998cf91
gui/dialog: consolidate win32 dark theme cruft into a single class
author | Paper <paper@tflc.us> |
---|---|
date | Fri, 25 Jul 2025 10:05:23 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
367:8d45d892be88 | 368:6d37a998cf91 |
---|---|
1 #ifndef MINORI_GUI_DIALOG_DIALOG_H_ | |
2 #define MINORI_GUI_DIALOG_DIALOG_H_ | |
3 | |
4 /* generic dialog widget; this abstracts away the win32 title bar hackery */ | |
5 #include <QDialog> | |
6 | |
7 class Dialog : public QDialog { | |
8 Q_OBJECT | |
9 | |
10 public: | |
11 Dialog(QWidget *parent = nullptr) : QDialog(parent) {} | |
12 | |
13 protected: | |
14 void showEvent(QShowEvent *event) override; | |
15 }; | |
16 | |
17 #endif // MINORI_GUI_DIALOG_DIALOG_H_ |