mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-02 01:38:00 +00:00
5537f5edd7
Moreover: - load asynchronously switch fixed - storybook refactored to rely on build-in components only - some explicit sizes/spacings removed - some bigger components split into smaller Closes: #7898
21 lines
362 B
QML
21 lines
362 B
QML
import QtQuick 2.14
|
|
import QtQuick.Controls 2.14
|
|
|
|
ListView {
|
|
id: root
|
|
|
|
spacing: 5
|
|
clip: true
|
|
|
|
property string currentPage
|
|
signal pageSelected(string page)
|
|
|
|
delegate: Button {
|
|
width: parent.width
|
|
|
|
text: model.title
|
|
checked: root.currentPage === model.title
|
|
onClicked: root.pageSelected(model.title)
|
|
}
|
|
}
|