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