ukui-menu/qml/AppUI/AppPageContent.qml

28 lines
658 B
QML
Raw Normal View History

import QtQuick 2.0
import QtQuick.Layouts 1.12
import QtQuick.Controls 2.5
import AppControls2 1.0 as AppControls2
import org.ukui.menu.core 1.0
Item {
AppList {
id: appList
clip: true
anchors.fill: parent
anchors.leftMargin: 4
function labelItemClicked() {
appList.visible = false;
selectionPage.viewShowStart();
}
}
SelectionPage {
id: selectionPage
anchors.fill: parent
anchors.bottomMargin: 54
visible: !appList.visible
onViewHideFinished: appList.visible = true
onLabelSelected: appList.labelSelection(labelId)
}
}