diff --git a/dependencies/subprojects/animationwindow/include/widgets/DropdownList.h b/dependencies/subprojects/animationwindow/include/widgets/DropdownList.h index 87fac22108d2cdfeede453deca1ba0eea93ed802..56f34d25e38474a91293ba48e9381f94052e0ac8 100644 --- a/dependencies/subprojects/animationwindow/include/widgets/DropdownList.h +++ b/dependencies/subprojects/animationwindow/include/widgets/DropdownList.h @@ -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 diff --git a/dependencies/subprojects/animationwindow/src/widgets/DropdownList.cpp b/dependencies/subprojects/animationwindow/src/widgets/DropdownList.cpp index ebc80eae4defd45f77b7ab6897f08a6aea81defa..f71370414ae2b8f2615da83458a13ba62b753e85 100644 --- a/dependencies/subprojects/animationwindow/src/widgets/DropdownList.cpp +++ b/dependencies/subprojects/animationwindow/src/widgets/DropdownList.cpp @@ -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); }