*/
void setText(const TText &text, const char *part = nullptr);
+ /**
+ * @brief Set the style to used by a given widget
+ * @param[in] style The name of the style to use on it
+ */
+ void setStyle(const std::string &style);
+
/**
* @brief Gets the edje object
* @return edje object
setText(m_pEo, text, part);
}
+ inline void View::setStyle(const std::string &style)
+ {
+ elm_object_style_set(getEo(), style.c_str());
+ }
+
inline void View::setText(Evas_Object *obj, const TText &text, const char *part)
{
elm_object_domain_translatable_part_text_set(obj, part, text.getDomain(), text.getMsg());
{
const int minMessagesBulk = 100;
const int additionalMessagesBulk = 50;
+ const std::string solidStyle = "solid/default";
}
ConvList::ConvList(Evas_Object *parent, App &app, WorkingDirRef workingDir)
m_pList->setListener(this);
m_pList->setMode(ELM_LIST_COMPRESS);
m_pList->setHomogeneous(false);
+ m_pList->setStyle(solidStyle);
m_pList->show();
m_pList->addEventCb(EVAS_CALLBACK_RESIZE, EVAS_EVENT_CALLBACK(ConvList, onListResized), this);
void ComposeListViewItem::show(bool show)
{
- // FIXME: setFilter() do not works properly
- // m_Visibility = show;
- // getOwner()->setFilter(&m_Visibility);
+ m_Visibility = show;
+ getOwner()->setFilter(&m_Visibility);
}