Some fixes for older Qt versions
This commit is contained in:
parent
222420bf03
commit
7bb3d07113
@ -8,6 +8,7 @@ import NymeaApp.Utils 1.0
|
||||
|
||||
Drawer {
|
||||
id: root
|
||||
dragMargin: 4
|
||||
|
||||
property ConfiguredHostsModel configuredHosts: null
|
||||
readonly property Engine currentEngine: configuredHosts.count > 0 ? configuredHosts.get(configuredHosts.currentIndex).engine : null
|
||||
|
||||
@ -118,7 +118,7 @@ Page {
|
||||
}
|
||||
}
|
||||
Repeater {
|
||||
model: swipeView.currentItem.item.hasOwnProperty("headerButtons") ? swipeView.currentItem.item.headerButtons : 0
|
||||
model: swipeView.currentItem != null && swipeView.currentItem.item.hasOwnProperty("headerButtons") ? swipeView.currentItem.item.headerButtons : 0
|
||||
delegate: HeaderButton {
|
||||
imageSource: swipeView.currentItem.item.headerButtons[index].iconSource
|
||||
onClicked: swipeView.currentItem.item.headerButtons[index].trigger()
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import QtQuick 2.3
|
||||
import QtQuick.Layouts 1.2
|
||||
import QtQuick.Controls 2.2
|
||||
import QtCharts 2.3
|
||||
import QtCharts 2.2
|
||||
import Nymea 1.0
|
||||
import "qrc:/ui/components/"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user