diff options
author | Simon Rettberg | 2018-08-01 18:40:26 +0200 |
---|---|---|
committer | Simon Rettberg | 2018-08-01 18:40:26 +0200 |
commit | 4d4d3dadfb0614471aa949b8fa66b07ee6b3a289 (patch) | |
tree | 47e2864dec4b60176329f007035db679e47c77b1 /src/server/mainwindow/mainwindow.h | |
parent | [server] Fix message box when deleting client (diff) | |
download | pvs2-4d4d3dadfb0614471aa949b8fa66b07ee6b3a289.tar.gz pvs2-4d4d3dadfb0614471aa949b8fa66b07ee6b3a289.tar.xz pvs2-4d4d3dadfb0614471aa949b8fa66b07ee6b3a289.zip |
[server] Improved disabling of toolbar buttons depending on context
* Disable tutor to student / student to tutor if no tutor online
* Disable above buttons if selected frame is tutor
* Disable lock single client button if selected client is tutor
... And many more
Closes #3399
Diffstat (limited to 'src/server/mainwindow/mainwindow.h')
-rw-r--r-- | src/server/mainwindow/mainwindow.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/server/mainwindow/mainwindow.h b/src/server/mainwindow/mainwindow.h index 59d50fc..f42fc73 100644 --- a/src/server/mainwindow/mainwindow.h +++ b/src/server/mainwindow/mainwindow.h @@ -55,10 +55,7 @@ private: // Button block stuff QTimer *_buttonLockTimer; QList<QAction*> _lockingButtons; - static const qint64 _buttonBlockTime = 2000; - - /* Context-sensitive Buttons */ - QList<QAction*> _contextButtons; + static const qint64 BUTTON_BLOCK_TIME = 2000; // Management stuff enum class Mode @@ -96,8 +93,7 @@ private: int getTileWidthPx() const; int getTileHeightPx() const; - void lockContextButtons(); - void unlockContextButtons(); + void updateContextButtonStates(); void reloadCurrentRoom(); |