mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-25 14:36:01 +03:00
Rename tbOrientation into taskbarOrientation
Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
This commit is contained in:
parent
aa90237e94
commit
83b36b4ab0
1 changed files with 5 additions and 5 deletions
|
@ -24,7 +24,7 @@ Window {
|
|||
trayWindow.requestActivate();
|
||||
var trayWindowX;
|
||||
var trayWindowY;
|
||||
var tbOrientation = systrayBackend.taskbarOrientation();
|
||||
var taskbarOrientation = systrayBackend.taskbarOrientation();
|
||||
var taskbarRect = systrayBackend.taskbarRect();
|
||||
var screenRect = Qt.rect(0, 0, Screen.width, Screen.height)
|
||||
if (Qt.platform.os === "linux") {
|
||||
|
@ -32,7 +32,7 @@ Window {
|
|||
screenRect.y = Screen.virtualY
|
||||
}
|
||||
|
||||
switch(tbOrientation) {
|
||||
switch(taskbarOrientation) {
|
||||
// Platform separation here: Windows and macOS draw coordinates have to be given in screen-coordinates
|
||||
// KDE and most xorg based DEs expect them as virtual coordinates
|
||||
case Systray.Bottom:
|
||||
|
@ -71,7 +71,7 @@ Window {
|
|||
trayWindowX = screenRect.right - trayWindow.width - 4;
|
||||
|
||||
if (Qt.platform.os === "linux") {
|
||||
trayWindowX -= tbOrientation === Systray.Right ? taskbarRect.width : 0;
|
||||
trayWindowX -= taskbarOrientation === Systray.Right ? taskbarRect.width : 0;
|
||||
}
|
||||
}
|
||||
if (trayWindowX <= screenRect.left) {
|
||||
|
@ -79,7 +79,7 @@ Window {
|
|||
trayWindowX = screenRect.left + 4;
|
||||
|
||||
if (Qt.platform.os === "linux") {
|
||||
trayWindowX += tbOrientation === Systray.Left ? taskbarRect.width : 0;
|
||||
trayWindowX += taskbarOrientation === Systray.Left ? taskbarRect.width : 0;
|
||||
}
|
||||
}
|
||||
if (trayWindowY <= screenRect.top) {
|
||||
|
@ -87,7 +87,7 @@ Window {
|
|||
trayWindowY = screenRect.top + 4;
|
||||
|
||||
if (Qt.platform.os === "linux") {
|
||||
trayWindowY += tbOrientation === Systray.Top ? taskbarRect.height : 0;
|
||||
trayWindowY += taskbarOrientation === Systray.Top ? taskbarRect.height : 0;
|
||||
}
|
||||
}
|
||||
if (screenRect.bottom <= trayWindowY + trayWindow.height) {
|
||||
|
|
Loading…
Reference in a new issue