properly init LogsModel
This commit is contained in:
parent
6e0291c7e2
commit
71d475e29a
@ -81,7 +81,7 @@ private slots:
|
||||
void newLogEntryReceived(const QVariantMap &data);
|
||||
|
||||
protected:
|
||||
Engine *m_engine;
|
||||
Engine *m_engine = nullptr;
|
||||
QList<LogEntry*> m_list;
|
||||
QString m_deviceId;
|
||||
QStringList m_typeIds;
|
||||
|
||||
@ -75,8 +75,10 @@ Page {
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
anchors.margins: -app.margins / 2
|
||||
onClicked: pageStack.push(Qt.resolvedUrl("StateLogPage.qml"),
|
||||
onClicked: {
|
||||
pageStack.push(Qt.resolvedUrl("StateLogPage.qml"),
|
||||
{device: root.device, stateType: stateType})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -31,7 +31,9 @@ Page {
|
||||
engine: _engine
|
||||
deviceId: root.device.id
|
||||
live: true
|
||||
Component.onCompleted: update()
|
||||
Component.onCompleted: {
|
||||
update()
|
||||
}
|
||||
typeIds: [root.stateType.id]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user