mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
Preferences: Adjust size to current page on page change.
This commit is contained in:
parent
134f8f5263
commit
ecfb784c92
@ -479,6 +479,12 @@ 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)
|
||||||
|
@ -10,12 +10,6 @@
|
|||||||
<height>500</height>
|
<height>500</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>800</width>
|
|
||||||
<height>500</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>Preferences</string>
|
<string>Preferences</string>
|
||||||
</property>
|
</property>
|
||||||
@ -159,9 +153,6 @@
|
|||||||
<property name="focusPolicy">
|
<property name="focusPolicy">
|
||||||
<enum>Qt::NoFocus</enum>
|
<enum>Qt::NoFocus</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="currentIndex">
|
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<widget class="QWidget" name="generalPage">
|
<widget class="QWidget" name="generalPage">
|
||||||
<layout class="QGridLayout" name="gridLayout_6">
|
<layout class="QGridLayout" name="gridLayout_6">
|
||||||
<item row="4" column="2">
|
<item row="4" column="2">
|
||||||
@ -648,8 +639,8 @@
|
|||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QWidget" name="tabsPage">
|
<widget class="QWidget" name="tabsPage">
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_4">
|
<layout class="QGridLayout" name="gridLayout_2">
|
||||||
<item>
|
<item row="0" column="0">
|
||||||
<widget class="QTabWidget" name="tabWidget_3">
|
<widget class="QTabWidget" name="tabWidget_3">
|
||||||
<property name="currentIndex">
|
<property name="currentIndex">
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
|
Loading…
Reference in New Issue
Block a user