Status change > Approved
@@ -1,5 +1,5 | |||
|
1 |
#include |
|
|
2 |
#include |
|
|
1 | #include "DataSource/DataSourceController.h" | |
|
2 | #include "DataSource/DataSourceItem.h" | |
|
3 | 3 | |
|
4 | 4 | #include <Data/IDataProvider.h> |
|
5 | 5 |
@@ -30,7 +30,7 DataSourceItem::DataSourceItem(DataSourceItemType type, QVector<QVariant> data) | |||
|
30 | 30 | |
|
31 | 31 | QVector<DataSourceItemAction *> DataSourceItem::actions() const noexcept |
|
32 | 32 | { |
|
33 |
QVector<DataSourceItemAction *> |
|
|
33 | auto result = QVector<DataSourceItemAction *>{}; | |
|
34 | 34 | |
|
35 | 35 | std::transform(std::cbegin(impl->m_Actions), std::cend(impl->m_Actions), |
|
36 | 36 | std::back_inserter(result), [](const auto &action) { return action.get(); }); |
@@ -18,8 +18,11 namespace { | |||
|
18 | 18 | std::unique_ptr<IDataSeries> generateDefaultDataSeries(const IDataProvider &provider) noexcept |
|
19 | 19 | { |
|
20 | 20 | auto parameters = DataProviderParameters{ |
|
21 | static_cast<double>(QDateTime{QDate{2017, 01, 01}}.toSecsSinceEpoch()), | |
|
22 |
static_cast<double>(QDateTime{QDate{2017, 01, 0 |
|
|
21 | // Remarks : we don't use toSecsSinceEpoch() here (method is for Qt 5.8 or above) | |
|
22 | static_cast<double>(QDateTime{QDate{2017, 01, 01}, QTime{12, 00}}.toMSecsSinceEpoch() | |
|
23 | / 1000.), | |
|
24 | static_cast<double>(QDateTime{QDate{2017, 01, 01}, QTime{12, 01}}.toMSecsSinceEpoch()) | |
|
25 | / 1000.}; | |
|
23 | 26 | |
|
24 | 27 | return provider.retrieveData(parameters); |
|
25 | 28 | } |
General Comments 1
You need to be logged in to leave comments.
Login now