mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-07-25 15:28:27 -04:00
* 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
25 lines
526 B
C++
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 */
|