mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 01:22:10 +01:00
Moved window geometry and state settings loaded before main window is
shown
This commit is contained in:
parent
75a34167ed
commit
e6847166f2
|
@ -161,6 +161,15 @@ void QupZilla::postLaunch()
|
||||||
|
|
||||||
void QupZilla::setupUi()
|
void QupZilla::setupUi()
|
||||||
{
|
{
|
||||||
|
QSettings settings(m_activeProfil+"settings.ini", QSettings::IniFormat);
|
||||||
|
settings.beginGroup("Browser-View-Settings");
|
||||||
|
if (settings.value("WindowMaximised", false).toBool()) {
|
||||||
|
setWindowState(Qt::WindowMaximized);
|
||||||
|
resize(800, 550);
|
||||||
|
} else {
|
||||||
|
setGeometry(settings.value("WindowGeometry", QRect(0, 0, 800, 550)).toRect());
|
||||||
|
}
|
||||||
|
|
||||||
QWidget* widget = new QWidget(this);
|
QWidget* widget = new QWidget(this);
|
||||||
setCentralWidget(widget);
|
setCentralWidget(widget);
|
||||||
|
|
||||||
|
@ -371,13 +380,6 @@ void QupZilla::loadSettings()
|
||||||
|
|
||||||
//Browser Window settings
|
//Browser Window settings
|
||||||
settings.beginGroup("Browser-View-Settings");
|
settings.beginGroup("Browser-View-Settings");
|
||||||
if (settings.value("WindowMaximised", false).toBool()) {
|
|
||||||
setWindowState(Qt::WindowMaximized);
|
|
||||||
resize(800, 550);
|
|
||||||
} else {
|
|
||||||
setGeometry(settings.value("WindowGeometry", QRect(0, 0, 800, 550)).toRect());
|
|
||||||
}
|
|
||||||
|
|
||||||
m_menuTextColor = settings.value("menuTextColor", QColor(Qt::black)).value<QColor>();
|
m_menuTextColor = settings.value("menuTextColor", QColor(Qt::black)).value<QColor>();
|
||||||
bool showStatusBar = settings.value("showStatusBar",true).toBool();
|
bool showStatusBar = settings.value("showStatusBar",true).toBool();
|
||||||
bool showHomeIcon = settings.value("showHomeButton",true).toBool();
|
bool showHomeIcon = settings.value("showHomeButton",true).toBool();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user