Page MenuHomePhorge

MainPage.qml
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

MainPage.qml

/*
* This file is part of kazv.
* SPDX-FileCopyrightText: 2020-2023 tusooa <tusooa@kazv.moe>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import QtQuick 2.2
import QtQuick.Layouts 1.15
import QtQuick.Controls 2.15
import moe.kazv.mxc.kazv 0.0 as MK
import org.kde.kirigami 2.13 as Kirigami
import '.' as Kazv
Kirigami.ScrollablePage {
title: l10n.get('main-page-title', { userId: matrixSdk.userId })
property var currentTagId: ''
onCurrentTagIdChanged: sdkVars.roomList.setTagId(currentTagId)
header: RowLayout {
ToolButton {
icon.name: 'clock'
Layout.fillWidth: true
text: l10n.get('main-page-recent-tab-title')
onClicked: currentTagId = ''
display: AbstractButton.TextUnderIcon
checkable: true
checked: currentTagId === ''
}
ToolButton {
icon.name: 'non-starred-symbolic'
Layout.fillWidth: true
text: l10n.get('main-page-favourites-tab-title')
onClicked: currentTagId = 'm.favourite'
display: AbstractButton.TextUnderIcon
checkable: true
checked: currentTagId === 'm.favourite'
}
}
Kazv.RoomListView {
roomList: sdkVars.roomList
anchors.fill: parent
}
}

File Metadata

Mime Type
text/plain
Expires
Tue, Jun 24, 3:37 PM (1 d, 17 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
87062
Default Alt Text
MainPage.qml (1 KB)

Event Timeline