Skip to content
Snippets Groups Projects
Commit e04fb1f4 authored by Joakim Hunskaar's avatar Joakim Hunskaar
Browse files

renamed getValue to getSelectedValue

parent 912a7c12
No related branches found
No related tags found
1 merge request!7Dropdownlist is now more similar to the other widgets
......@@ -13,7 +13,7 @@ namespace TDT4102 {
void update(nk_context* context) override;
public:
explicit DropdownList(TDT4102::Point location, unsigned int width, unsigned int height, std::vector<std::string> &initialOptions);
std::string getValue() const;
std::string getSelectedValue() const;
void setOptions(std::vector<std::string> &updatedOptionsList);
};
}
\ No newline at end of file
......@@ -10,7 +10,7 @@ TDT4102::DropdownList::DropdownList(TDT4102::Point location, unsigned int width,
}
std::string TDT4102::DropdownList::getValue() const {
std::string TDT4102::DropdownList::getSelectedValue() const {
return options.at(selectedIndex);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment