Rename MainPaneToolBar to BottomBar

This commit is contained in:
miruka 2020-03-12 17:15:36 -04:00
parent a6315f7829
commit 247eb15281
3 changed files with 8 additions and 10 deletions

View File

@ -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

View File

@ -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

View File

@ -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