mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2026-02-23 07:23:02 -05:00
refactor: remove navigation panel
This commit is contained in:
@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user