Rename MainPaneToolBar to BottomBar
This commit is contained in:
parent
a6315f7829
commit
247eb15281
1
TODO.md
1
TODO.md
|
@ -3,7 +3,6 @@
|
|||
## Before release
|
||||
|
||||
- Catch server 5xx errors when sending message and retry
|
||||
- nio ClientTimeout (to fix sync hanging after network changes or hibernation)
|
||||
- Update README.md
|
||||
|
||||
## Refactoring
|
||||
|
|
|
@ -5,7 +5,6 @@ import QtQuick.Layouts 1.12
|
|||
import "../Base"
|
||||
|
||||
HRowLayout {
|
||||
id: toolBar
|
||||
// Hide filter field overflowing for a sec on size changes
|
||||
clip: true
|
||||
|
|
@ -14,24 +14,24 @@ HDrawer {
|
|||
if (! hasFocus) mainPaneList.detachedCurrentIndex = false
|
||||
|
||||
|
||||
readonly property bool hasFocus: toolBar.filterField.activeFocus
|
||||
readonly property bool hasFocus: bottomBar.filterField.activeFocus
|
||||
readonly property alias mainPaneList: mainPaneList
|
||||
readonly property alias toolBar: toolBar
|
||||
property alias filter: toolBar.roomFilter
|
||||
readonly property alias bottomBar: bottomBar
|
||||
property alias filter: bottomBar.roomFilter
|
||||
|
||||
|
||||
function toggleFocus() {
|
||||
if (toolBar.filterField.activeFocus) {
|
||||
if (bottomBar.filterField.activeFocus) {
|
||||
pageLoader.takeFocus()
|
||||
return
|
||||
}
|
||||
|
||||
mainPane.open()
|
||||
toolBar.filterField.forceActiveFocus()
|
||||
bottomBar.filterField.forceActiveFocus()
|
||||
}
|
||||
|
||||
function addccount() {
|
||||
toolBar.addAccountButton.clicked()
|
||||
bottomBar.addAccountButton.clicked()
|
||||
}
|
||||
|
||||
|
||||
|
@ -53,8 +53,8 @@ HDrawer {
|
|||
Layout.fillHeight: true
|
||||
}
|
||||
|
||||
MainPaneToolBar {
|
||||
id: toolBar
|
||||
BottomBar {
|
||||
id: bottomBar
|
||||
mainPaneList: mainPaneList
|
||||
|
||||
Layout.fillWidth: true
|
||||
|
|
Loading…
Reference in New Issue
Block a user