mirror of
https://github.com/KDE/latte-dock.git
synced 2025-01-13 21:18:01 +03:00
restore layouts in main config window
--the latest fix for the configuration window placement does not need to drop the clean implementation with layouts
This commit is contained in:
parent
1ffa4e9ab4
commit
dd091b6569
@ -290,7 +290,10 @@ void DockView::showConfigurationInterface(Plasma::Applet *applet)
|
||||
if (!delayConfigView) {
|
||||
m_configView.data()->show();
|
||||
} else {
|
||||
QTimer::singleShot(100, m_configView, SLOT(show()));
|
||||
//add a timer for showing the configuration window the first time it is
|
||||
//created in order to give the containmnent's layouts the time to
|
||||
//calculate the window's height
|
||||
QTimer::singleShot(150, m_configView, SLOT(show()));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -83,10 +83,7 @@ PlasmaCore.FrameSvgItem {
|
||||
}
|
||||
}
|
||||
|
||||
//! INFO: by changing this layout to just column reduces to minimimum
|
||||
//! the cases for which the config window is not placed correctly
|
||||
//! when is shown
|
||||
Column {
|
||||
ColumnLayout {
|
||||
id: content
|
||||
|
||||
Layout.minimumWidth: width
|
||||
@ -102,10 +99,8 @@ PlasmaCore.FrameSvgItem {
|
||||
|
||||
RowLayout {
|
||||
id: header
|
||||
Layout.maximumWidth: width
|
||||
Layout.minimumWidth: width
|
||||
Layout.fillWidth: true
|
||||
|
||||
width: pagesBackground.width
|
||||
spacing: 0
|
||||
|
||||
KQuickControlAddons.QIconItem {
|
||||
@ -174,7 +169,7 @@ PlasmaCore.FrameSvgItem {
|
||||
Layout.minimumHeight: height
|
||||
Layout.maximumHeight: height
|
||||
|
||||
width: maxWidth //- units.smallSpacing
|
||||
width: maxWidth - units.smallSpacing
|
||||
height: behaviorPage.Layout.maximumHeight + units.smallSpacing * 4
|
||||
|
||||
property color bC: theme.backgroundColor
|
||||
@ -217,12 +212,8 @@ PlasmaCore.FrameSvgItem {
|
||||
|
||||
RowLayout {
|
||||
id: actionButtons
|
||||
|
||||
Layout.fillWidth: true
|
||||
Layout.alignment: Qt.AlignHCenter | Qt.AlignBottom
|
||||
Layout.maximumWidth: width
|
||||
Layout.minimumWidth: width
|
||||
|
||||
width: pagesBackground.width
|
||||
|
||||
spacing: units.largeSpacing
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user