mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-19 18:26:34 +01:00
[Preferences] Fixed size of dialog on low-res screens.
Preferences content moved into QScrollArea Closes #818
This commit is contained in:
parent
6604be5f53
commit
08f3456e28
@ -3,6 +3,7 @@ Version 1.5.0
|
|||||||
* added support for Proxy Auto-Config (PAC)
|
* added support for Proxy Auto-Config (PAC)
|
||||||
* added option to open another private window from private window
|
* added option to open another private window from private window
|
||||||
* added delete action in edit context menu on page
|
* added delete action in edit context menu on page
|
||||||
|
* fixed: size of preferences dialog on low-res screens
|
||||||
|
|
||||||
Version 1.4.1
|
Version 1.4.1
|
||||||
* released 15 March 2013
|
* released 15 March 2013
|
||||||
|
@ -54,6 +54,7 @@
|
|||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
#include <QCloseEvent>
|
#include <QCloseEvent>
|
||||||
#include <QColorDialog>
|
#include <QColorDialog>
|
||||||
|
#include <QDesktopWidget>
|
||||||
|
|
||||||
Preferences::Preferences(QupZilla* mainClass, QWidget* parent)
|
Preferences::Preferences(QupZilla* mainClass, QWidget* parent)
|
||||||
: QDialog(parent)
|
: QDialog(parent)
|
||||||
@ -460,6 +461,16 @@ Preferences::Preferences(QupZilla* mainClass, QWidget* parent)
|
|||||||
ui->version->setText(" QupZilla v" + QupZilla::VERSION);
|
ui->version->setText(" QupZilla v" + QupZilla::VERSION);
|
||||||
ui->listWidget->setCurrentRow(currentSettingsPage);
|
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
|
#if QTWEBKIT_TO_2_3
|
||||||
ui->caretBrowsing->setHidden(true);
|
ui->caretBrowsing->setHidden(true);
|
||||||
ui->animateScrolling->setHidden(true);
|
ui->animateScrolling->setHidden(true);
|
||||||
@ -485,12 +496,6 @@ void Preferences::showStackedPage(QListWidgetItem* item)
|
|||||||
if (index == 10) {
|
if (index == 10) {
|
||||||
m_pluginsList->load();
|
m_pluginsList->load();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update size
|
|
||||||
QWidget* w = ui->stackedWidget->currentWidget();
|
|
||||||
if (w) {
|
|
||||||
w->setMinimumSize(w->sizeHint());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Preferences::setNotificationPreviewVisible(bool state)
|
void Preferences::setNotificationPreviewVisible(bool state)
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user