summaryrefslogtreecommitdiffstats
path: root/src/gui.h
diff options
context:
space:
mode:
authorSimon Rettberg2024-04-30 09:28:41 +0200
committerSimon Rettberg2024-04-30 09:28:41 +0200
commit688a0887a38e5b4ff96d72772d27fc7616cd3d51 (patch)
treefef0d6955052a61029fc8162e9ea0d82f61c95e4 /src/gui.h
parentInischl commit (diff)
downloadcowgui-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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui.h b/src/gui.h
index 58f0c54..c4a4b39 100644
--- a/src/gui.h
+++ b/src/gui.h
@@ -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;