Revert "[EGD-3572] SettingsTable exchanged to Settings::Settings (#968)" (#1035)

This reverts commit f11bc1f0d0.

Co-authored-by: Hubert Chrzaniuk <hubert.chrzaniuk@mudita.com>
This commit is contained in:
RobertPiet
2020-11-18 12:17:08 +01:00
committed by GitHub
parent 192f5bc854
commit c25ad79421
40 changed files with 617 additions and 242 deletions

View File

@@ -7,9 +7,6 @@
#include "NotesModel.hpp"
#include "ListView.hpp"
#include <module-utils/Utils.hpp>
#include <module-services/service-db/agents/settings/SystemSettings.hpp>
NotesModel::NotesModel(app::Application *app) : DatabaseModel(app)
{}
@@ -50,7 +47,12 @@ gui::ListItem *NotesModel::getItem(gui::Order order)
{
std::shared_ptr<NotesRecord> note = getRecord(order);
auto *item = new gui::NotesItem(this, !(application->isTimeFormat12()));
SettingsRecord &settings = application->getSettings();
if (note == nullptr)
return nullptr;
gui::NotesItem *item = new gui::NotesItem(this, !settings.timeFormat12);
item->setNote(note);
return item;