mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-03-01 18:29:16 +01:00
OP-1395 - Fix log entries downloaded counter in dialog
This commit is contained in:
parent
dc11ff51b1
commit
e53be4f8ec
@ -103,7 +103,7 @@ Rectangle {
|
|||||||
}
|
}
|
||||||
Text {
|
Text {
|
||||||
id: totalEntries
|
id: totalEntries
|
||||||
text: "<b>" + qsTr("Entries logged: ") + "</b>" + logManager.uavoEntries.count
|
text: "<b>" + qsTr("Entries downloaded: ") + "</b>" + logManager.logEntriesCount
|
||||||
}
|
}
|
||||||
Rectangle {
|
Rectangle {
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
|
@ -182,7 +182,7 @@ class FlightLogManager : public QObject {
|
|||||||
Q_PROPERTY(QStringList logSettings READ logSettings NOTIFY logSettingsChanged)
|
Q_PROPERTY(QStringList logSettings READ logSettings NOTIFY logSettingsChanged)
|
||||||
Q_PROPERTY(QStringList logStatuses READ logStatuses NOTIFY logStatusesChanged)
|
Q_PROPERTY(QStringList logStatuses READ logStatuses NOTIFY logStatusesChanged)
|
||||||
Q_PROPERTY(int loggingEnabled READ loggingEnabled WRITE setLoggingEnabled NOTIFY loggingEnabledChanged)
|
Q_PROPERTY(int loggingEnabled READ loggingEnabled WRITE setLoggingEnabled NOTIFY loggingEnabledChanged)
|
||||||
|
Q_PROPERTY(int logEntriesCount READ logEntriesCount NOTIFY logEntriesChanged)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit FlightLogManager(QObject *parent = 0);
|
explicit FlightLogManager(QObject *parent = 0);
|
||||||
@ -244,6 +244,9 @@ public:
|
|||||||
{
|
{
|
||||||
return m_loggingEnabled;
|
return m_loggingEnabled;
|
||||||
}
|
}
|
||||||
|
int logEntriesCount(){
|
||||||
|
return m_logEntries.count();
|
||||||
|
}
|
||||||
signals:
|
signals:
|
||||||
void logEntriesChanged();
|
void logEntriesChanged();
|
||||||
void flightEntriesChanged();
|
void flightEntriesChanged();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user