Skip to content

Commit

Permalink
Added setLabel to ListItem (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
WerWolv committed Oct 20, 2020
1 parent 8247b2f commit d5ba2ea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions library/include/borealis/list.hpp
Expand Up @@ -85,6 +85,7 @@ class ListItem : public View

void setChecked(bool checked);

void setLabel(std::string label);
std::string getLabel();

/**
Expand Down
5 changes: 5 additions & 0 deletions library/lib/list.cpp
Expand Up @@ -444,6 +444,11 @@ std::string ListItem::getLabel()
return this->label;
}

void ListItem::setLabel(std::string label)
{
this->label = label;
}

ListItem::~ListItem()
{
if (this->descriptionView)
Expand Down

0 comments on commit d5ba2ea

Please sign in to comment.