mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-10-24 15:38:30 -04:00
Added acquireing data for phonebook model.
This commit is contained in:
1 parent
315530d0a8
commit
70e291e5d5
32 files changed
+738
-99
No files matched your search
@@ -50,7 +50,7 @@ bool NotesModel::updateRecords( std::unique_ptr<std::vector<NotesRecord>> record
|
||||
return true;
|
||||
}
|
||||
|
||||
gui::ListItem* NotesModel::getItem( int index ) {
|
||||
gui::ListItem* NotesModel::getItem( int index, int firstElement, int prevElement, uint32_t count ) {
|
||||
std::shared_ptr<NotesRecord> note = getRecord( index );
|
||||
|
||||
SettingsRecord& settings = application->getSettings();
|
||||
@@ -58,9 +58,12 @@ gui::ListItem* NotesModel::getItem( int index ) {
|
||||
if( note == nullptr )
|
||||
return nullptr;
|
||||
|
||||
LOG_INFO("Note item: %d", index);
|
||||
|
||||
gui::NotesItem* item = new gui::NotesItem(this, !settings.timeFormat12 );
|
||||
if( item != nullptr ) {
|
||||
item->setNote(note);
|
||||
item->setID( index );
|
||||
return item;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user