implemented log dialog

This commit is contained in:
Geoffray Levasseur committed 2026-10-27 13:40:54 +01:00
1 parent 18bf340dee
commit 2226f0bce4
5 files changed
+250

No files matched your search

+5
View File
@@ -38,6 +38,7 @@ class QShowEvent;
class QHideEvent;
class QEventLoop;
class QScreen;
class QKeyEvent;
namespace Dpi {
@@ -76,11 +77,15 @@ public:
std::function<void()> onDeactivate;
std::function<bool()> onCloseQuery; // return false to veto the close
std::function<void()> onClose;
std::function<void(QKeyEvent *)> onKeyDown;
std::function<void(QKeyEvent *)> onKeyUp;
protected:
void showEvent(QShowEvent *event) override;
void hideEvent(QHideEvent *event) override;
void closeEvent(QCloseEvent *event) override;
void keyPressEvent(QKeyEvent *event) override;
void keyReleaseEvent(QKeyEvent *event) override;
bool event(QEvent *event) override;
private: