1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-19 10:16:34 +01:00

[Preferences] Fixed size of dialog on low-res screens.

Preferences content moved into QScrollArea
Closes #818
This commit is contained in:
nowrep 2013-04-01 15:01:58 +02:00
parent 6604be5f53
commit 08f3456e28
3 changed files with 2449 additions and 2418 deletions

View File

@ -3,6 +3,7 @@ Version 1.5.0
* added support for Proxy Auto-Config (PAC)
* added option to open another private window from private window
* added delete action in edit context menu on page
* fixed: size of preferences dialog on low-res screens
Version 1.4.1
* released 15 March 2013

View File

@ -54,6 +54,7 @@
#include <QMessageBox>
#include <QCloseEvent>
#include <QColorDialog>
#include <QDesktopWidget>
Preferences::Preferences(QupZilla* mainClass, QWidget* parent)
: QDialog(parent)
@ -460,6 +461,16 @@ Preferences::Preferences(QupZilla* mainClass, QWidget* parent)
ui->version->setText(" QupZilla v" + QupZilla::VERSION);
ui->listWidget->setCurrentRow(currentSettingsPage);
QDesktopWidget* desktop = QApplication::desktop();
QSize s = size();
if (desktop->availableGeometry(this).size().width() < s.width()) {
s.setWidth(desktop->availableGeometry(this).size().width() - 50);
}
if (desktop->availableGeometry(this).size().height() < s.height()) {
s.setHeight(desktop->availableGeometry(this).size().height() - 50);
}
resize(s);
#if QTWEBKIT_TO_2_3
ui->caretBrowsing->setHidden(true);
ui->animateScrolling->setHidden(true);
@ -485,12 +496,6 @@ void Preferences::showStackedPage(QListWidgetItem* item)
if (index == 10) {
m_pluginsList->load();
}
// Update size
QWidget* w = ui->stackedWidget->currentWidget();
if (w) {
w->setMinimumSize(w->sizeHint());
}
}
void Preferences::setNotificationPreviewVisible(bool state)

File diff suppressed because it is too large Load Diff