mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
Use desktop availableGeometry for default window size calculation
This commit is contained in:
parent
63b7e41713
commit
24ff9285f5
@ -263,8 +263,8 @@ void BrowserWindow::setupUi()
|
|||||||
int websearchBarWidth;
|
int websearchBarWidth;
|
||||||
|
|
||||||
QDesktopWidget* desktop = mApp->desktop();
|
QDesktopWidget* desktop = mApp->desktop();
|
||||||
int windowWidth = desktop->width() / 1.3;
|
int windowWidth = desktop->availableGeometry().width() / 1.3;
|
||||||
int windowHeight = desktop->height() / 1.3;
|
int windowHeight = desktop->availableGeometry().height() / 1.3;
|
||||||
|
|
||||||
Settings settings;
|
Settings settings;
|
||||||
settings.beginGroup("Browser-View-Settings");
|
settings.beginGroup("Browser-View-Settings");
|
||||||
|
Loading…
Reference in New Issue
Block a user