Files
MuditaOS/module-apps/application-messages/widgets/SearchResultsItem.cpp
pholat 2081d2966f EGD-3219 SMS search view implemented (#377)
* EGD-3219 Initial commit for SearchResults window

* no elements - just window with provider and listview added

* EGD-3219 Added minimal SearchResultsItem

* EGD-3219 Moved ThreadModel to models catalog

* EGD-3219 ThreadModel - subclassed

* EGD-3219 Use BaseResultsModel for search items

* EGD-3219 Search looks nearly right, preview text to be added in database

* EGD-3219 Split ThreadModel & Item to use in two elements
2020-05-21 08:51:34 +02:00

25 lines
526 B
C++

#include "SearchResultsItem.hpp"
namespace gui
{
void SearchResultsItem::setContact(const UTF8 &text)
{
if (contact != nullptr) {
contact->setText(text);
}
}
void SearchResultsItem::setTimestamp(const UTF8 &text)
{
if (timestamp != nullptr) {
timestamp->setText(text);
}
}
void SearchResultsItem::setPreview(const UTF8 &text)
{
if (preview != nullptr) {
preview->setText(text);
}
}
} /* namespace gui */