diff options
author | Max Horn | 2003-11-05 00:58:42 +0000 |
---|---|---|
committer | Max Horn | 2003-11-05 00:58:42 +0000 |
commit | ceef10b5b892590390deb5c94fdc812ca73d962f (patch) | |
tree | 1881c74520102044132b47bc46b1a5e7c8647298 | |
parent | 583ae6145350d798f3dd626229f362a1e58b4944 (diff) | |
download | scummvm-rg350-ceef10b5b892590390deb5c94fdc812ca73d962f.tar.gz scummvm-rg350-ceef10b5b892590390deb5c94fdc812ca73d962f.tar.bz2 scummvm-rg350-ceef10b5b892590390deb5c94fdc812ca73d962f.zip |
make it possible to query the tag of the selected item
svn-id: r11142
-rw-r--r-- | gui/PopUpWidget.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gui/PopUpWidget.h b/gui/PopUpWidget.h index 44eff7d174..4b20415e72 100644 --- a/gui/PopUpWidget.h +++ b/gui/PopUpWidget.h @@ -62,6 +62,7 @@ public: void setSelected(int item); int getSelected() const { return _selectedItem; } + uint32 getSelectedTag() const { return (_selectedItem >= 0) ? _entries[_selectedItem].tag : (uint32)-1; } const String& getSelectedString() const { return (_selectedItem >= 0) ? _entries[_selectedItem].name : String::emptyString; } protected: |