annotate include/gui/dialog/dialog.h @ 374:f7bb2978de48

gui/pages/anime_list: add Search right-click menu, don't create menu items that do nothing
author Paper <paper@tflc.us>
date Fri, 25 Jul 2025 11:03:34 -0400
parents 6d37a998cf91
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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_