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