diff options
author | Jonathan Bauer | 2018-06-18 14:14:54 +0200 |
---|---|---|
committer | Jonathan Bauer | 2018-06-18 14:14:54 +0200 |
commit | 33bcdbf3e8e919aa293057784c30d3bf06b94c26 (patch) | |
tree | a0205c3b58eafd59a37123d5a62d426f7589d0ca /src/client/toolbar/toolbar.h | |
parent | [server] Handle client disconnects (diff) | |
download | pvs2-33bcdbf3e8e919aa293057784c30d3bf06b94c26.tar.gz pvs2-33bcdbf3e8e919aa293057784c30d3bf06b94c26.tar.xz pvs2-33bcdbf3e8e919aa293057784c30d3bf06b94c26.zip |
[client] top/bottom position detection
if a top system bar/panel is detected (i.e. reserves a region of the screen geometry), place the toolbar at the bottom of the screen
Diffstat (limited to 'src/client/toolbar/toolbar.h')
-rw-r--r-- | src/client/toolbar/toolbar.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client/toolbar/toolbar.h b/src/client/toolbar/toolbar.h index a7cd5ad..a8e929f 100644 --- a/src/client/toolbar/toolbar.h +++ b/src/client/toolbar/toolbar.h @@ -53,6 +53,8 @@ private: bool _isManagerPc; const QPixmap _cam32, _beWatchedEye; + int centerPos, yPos, yPosHidden; + void enterEvent(QEvent* e); QList<Room> myRooms(); bool isManagerPc(); @@ -81,6 +83,7 @@ private slots: void showInformationDialog(); void enableLockBtn(); void updateButtonVisibility(); + void setToolbarPosition(const QRect &geometry); }; #endif /* PVSCLIENTGUI_H_ */ |