diff options
author | Simon Rettberg | 2024-04-30 09:28:41 +0200 |
---|---|---|
committer | Simon Rettberg | 2024-04-30 09:28:41 +0200 |
commit | 688a0887a38e5b4ff96d72772d27fc7616cd3d51 (patch) | |
tree | fef0d6955052a61029fc8162e9ea0d82f61c95e4 /src/gui.h | |
parent | Inischl commit (diff) | |
download | cowgui-688a0887a38e5b4ff96d72772d27fc7616cd3d51.tar.gz cowgui-688a0887a38e5b4ff96d72772d27fc7616cd3d51.tar.xz cowgui-688a0887a38e5b4ff96d72772d27fc7616cd3d51.zip |
Stay on top, ignore close events
Diffstat (limited to 'src/gui.h')
-rw-r--r-- | src/gui.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -19,6 +19,9 @@ public: explicit Gui(const char *urlbase, const char *uuid, QWidget *parent = nullptr); ~Gui(); +protected: + virtual void closeEvent(QCloseEvent *event) override; + private slots: void pushedCancel(bool pushed); void pushedOk(bool pushed); @@ -32,6 +35,7 @@ private: QString _remoteState; QString _urlStatus, _urlAbort, _urlFinish; bool _denyInteraction; + bool _allowClose; QPushButton *_btnAbort, *_btnOk; QTimer *_tmrStatus; QHash<QString, Progress*> _items; |