1
0
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:
Alessio Morale 2014-07-09 19:49:14 +02:00
parent dc11ff51b1
commit e53be4f8ec
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -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();