load dock config pages properly in stackview

--during the first startup
work/spdx
Michail Vourlakos 4 years ago
parent 8ae3b4ecfb
commit e47775e2f4

@ -438,18 +438,6 @@ FocusScope {
}
}
Component.onCompleted: {
push(behaviorPage);
push(appearancePage);
push(effectsPage);
pop(effectsPage);
pop(appearancePage);
pop(behaviorPage);
push(behaviorPage);
}
onCurrentItemChanged: {
if (!currentItem) {
pagesStackView.forwardSliding = true;
@ -486,12 +474,6 @@ FocusScope {
Pages.TasksConfig {
id: tasksPage
readonly property int pageIndex: tabBar.visibleStaticPages+index
Component.onCompleted: {
pagesStackView.replace(pagesStackView.currentItem, tasksPage);
pagesStackView.forwardSliding = true;
pagesStackView.replace(tasksPage, behaviorPage);
}
}
}
}

@ -33,9 +33,14 @@ import org.kde.latte.components 1.0 as LatteComponents
import org.kde.latte.private.containment 0.1 as LatteContainment
PlasmaComponents.Page {
id: page
Layout.maximumWidth: content.width + content.Layout.leftMargin * 2
Layout.maximumHeight: content.height + units.smallSpacing * 2
Component.onCompleted: {
pagesStackView.push(page);
}
Timer {
id: syncGeometry

@ -34,9 +34,15 @@ import org.kde.latte.private.containment 0.1 as LatteContainment
import "../../controls" as LatteExtraControls
PlasmaComponents.Page {
id: page
Layout.maximumWidth: content.width + content.Layout.leftMargin * 2
Layout.maximumHeight: content.height + units.smallSpacing * 2
Component.onCompleted: {
pagesStackView.push(page);
pagesStackView.pop(page);
}
ColumnLayout {
id: content

@ -36,9 +36,15 @@ import org.kde.latte.private.containment 0.1 as LatteContainment
import "../../controls" as LatteExtraControls
PlasmaComponents.Page {
id: page
Layout.maximumWidth: content.width + content.Layout.leftMargin * 2
Layout.maximumHeight: content.height + units.smallSpacing
Component.onCompleted: {
pagesStackView.push(page);
pagesStackView.pop(page);
}
ColumnLayout {
id: content
anchors.horizontalCenter: parent.horizontalCenter

@ -32,13 +32,18 @@ import org.kde.latte.components 1.0 as LatteComponents
import org.kde.latte.private.tasks 0.1 as LatteTasks
PlasmaComponents.Page {
id: _tabsPage
id: _tasksPage
Layout.maximumWidth: content.width + content.Layout.leftMargin * 2
Layout.maximumHeight: content.height + units.smallSpacing * 2
property bool disableAllWindowsFunctionality: tasks.configuration.hideAllTasks
readonly property bool isCurrentPage: (dialog.currentPage === _tabsPage)
readonly property bool isCurrentPage: (dialog.currentPage === _tasksPage)
Component.onCompleted: {
pagesStackView.push(_tasksPage);
pagesStackView.pop(_tasksPage);
}
onIsCurrentPageChanged: {
if (isCurrentPage && latteView.extendedInterface.latteTasksModel.count>1) {

Loading…
Cancel
Save