Commit 66c12406 authored by Volker Krause's avatar Volker Krause
Browse files

Add data reload action

parent 5f2ff2ad
......@@ -74,10 +74,16 @@ AnalyticsView::AnalyticsView(QWidget* parent) :
timeAggrMenu->addAction(ui->actionAggregateMonth);
timeAggrMenu->addAction(ui->actionAggregateYear);
connect(ui->actionReload, &QAction::triggered, m_dataModel, &DataModel::reload);
connect(ui->actionExportData, &QAction::triggered, this, &AnalyticsView::exportData);
connect(ui->actionImportData, &QAction::triggered, this, &AnalyticsView::importData);
addActions({timeAggrMenu->menuAction(), ui->actionExportData, ui->actionImportData});
addActions({
timeAggrMenu->menuAction(),
ui->actionReload,
ui->actionExportData,
ui->actionImportData
});
QSettings settings;
settings.beginGroup(QStringLiteral("Analytics"));
......
......@@ -148,6 +148,17 @@
<string>Import sample data.</string>
</property>
</action>
<action name="actionReload">
<property name="icon">
<iconset theme="view-refresh"/>
</property>
<property name="text">
<string>&amp;Reload Data</string>
</property>
<property name="toolTip">
<string>Refresh data from the server.</string>
</property>
</action>
</widget>
<customwidgets>
<customwidget>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment