mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-28 17:54:15 +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 {
|
||||
id: totalEntries
|
||||
text: "<b>" + qsTr("Entries logged: ") + "</b>" + logManager.uavoEntries.count
|
||||
text: "<b>" + qsTr("Entries downloaded: ") + "</b>" + logManager.logEntriesCount
|
||||
}
|
||||
Rectangle {
|
||||
Layout.fillHeight: true
|
||||
|
@ -182,7 +182,7 @@ class FlightLogManager : public QObject {
|
||||
Q_PROPERTY(QStringList logSettings READ logSettings NOTIFY logSettingsChanged)
|
||||
Q_PROPERTY(QStringList logStatuses READ logStatuses NOTIFY logStatusesChanged)
|
||||
Q_PROPERTY(int loggingEnabled READ loggingEnabled WRITE setLoggingEnabled NOTIFY loggingEnabledChanged)
|
||||
|
||||
Q_PROPERTY(int logEntriesCount READ logEntriesCount NOTIFY logEntriesChanged)
|
||||
|
||||
public:
|
||||
explicit FlightLogManager(QObject *parent = 0);
|
||||
@ -244,6 +244,9 @@ public:
|
||||
{
|
||||
return m_loggingEnabled;
|
||||
}
|
||||
int logEntriesCount(){
|
||||
return m_logEntries.count();
|
||||
}
|
||||
signals:
|
||||
void logEntriesChanged();
|
||||
void flightEntriesChanged();
|
||||
|
Loading…
x
Reference in New Issue
Block a user