1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

Set maximumHeight of websearchbar for Windows + update default position

of QupZilla on screen from 0,0 to 20,20
This fixed bug on Windows, where window title of mainwindow wasn't
visible
This commit is contained in:
nowrep 2011-10-03 19:39:32 +02:00
parent d0342e87ad
commit c23f3f8b5d
2 changed files with 5 additions and 1 deletions

View File

@ -170,7 +170,7 @@ void QupZilla::setupUi()
resize(800, 550);
setWindowState(Qt::WindowMaximized);
} else {
setGeometry(settings.value("WindowGeometry", QRect(0, 0, 800, 550)).toRect());
setGeometry(settings.value("WindowGeometry", QRect(20, 20, 800, 550)).toRect());
}
QWidget* widget = new QWidget(this);

View File

@ -42,6 +42,10 @@ WebSearchBar::WebSearchBar(QupZilla* mainClass, QWidget* parent)
setWidgetSpacing(0);
setupSearchTypes();
#ifdef Q_WS_WIN
setMaximumWidth(350);
#endif
}
void WebSearchBar::setupSearchTypes()