Add ability to OptionProperty to return the currently selected Option

This commit is contained in:
Alexander Bock
2017-12-23 20:23:36 +01:00
parent 32534e43c7
commit 0e96632586
2 changed files with 23 additions and 4 deletions
@@ -117,6 +117,12 @@ public:
*/
void setValue(int value) override;
/**
* Returns the currently selected option.
* \return The currently selected option
*/
const Option& option() const;
/**
* Get the description of the option that matches <code>value</code>
* \param value The value of the option