refactor: remove navigation panel

This commit is contained in:
Petr Mironychev
2025-10-12 02:33:21 +02:00
parent 69d9af1a97
commit 5f094887e7
4 changed files with 0 additions and 85 deletions

View File

@ -82,17 +82,6 @@ ChatRootView {
checked: typeof _chatview !== 'undefined' ? _chatview.isPin : false
onCheckedChanged: _chatview.isPin = topBar.pinButton.checked
}
navigation.currentMessageNumber: {
return "%1/%2".arg(chatListView.currentIndex + 1).arg(chatListView.count)
}
navigation.onMessageUp: {
const newIndex = Math.max(0, chatListView.currentIndex - 1)
chatListView.positionViewAtIndex(newIndex, ListView.Center)
}
navigation.onMessageDown: {
const newIndex = Math.min(chatListView.count - 1, chatListView.currentIndex + 1)
chatListView.positionViewAtIndex(newIndex, ListView.Center)
}
}
ListView {
@ -135,13 +124,6 @@ ChatRootView {
}
}
onContentYChanged: {
const index = indexAt(width / 2, contentY + height / 2)
if (index !== -1) {
currentIndex = index
}
}
Component {
id: chatItemComponent