diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-12-29 00:16:54 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-12-29 00:16:54 +0300 |
commit | 0cd049b5b56b34b0b7ab3e3eac93dcb255c4e118 (patch) | |
tree | 5dedc441dcf535f8ac4b43f8b8ea0bb27c8ba6ac /src/gui/widgets/popuplist.cpp | |
parent | 7c51eee345d27e680a26a915ffccb2d0abf063ea (diff) | |
download | plus-0cd049b5b56b34b0b7ab3e3eac93dcb255c4e118.tar.gz plus-0cd049b5b56b34b0b7ab3e3eac93dcb255c4e118.tar.bz2 plus-0cd049b5b56b34b0b7ab3e3eac93dcb255c4e118.tar.xz plus-0cd049b5b56b34b0b7ab3e3eac93dcb255c4e118.zip |
Show flags icons in language selection list
Also add support for extended listboxes in popuplist control.
Diffstat (limited to 'src/gui/widgets/popuplist.cpp')
-rw-r--r-- | src/gui/widgets/popuplist.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gui/widgets/popuplist.cpp b/src/gui/widgets/popuplist.cpp index 260dcb6a9..80fd12e85 100644 --- a/src/gui/widgets/popuplist.cpp +++ b/src/gui/widgets/popuplist.cpp @@ -23,7 +23,7 @@ #include "gui/gui.h" #include "gui/widgets/dropdown.h" -#include "gui/widgets/listbox.h" +#include "gui/widgets/extendedlistbox.h" #include "gui/widgets/scrollarea.h" #include "utils/gettext.h" @@ -31,11 +31,13 @@ #include "debug.h" PopupList::PopupList(DropDown *const widget, - gcn::ListModel *const listModel): + gcn::ListModel *const listModel, + bool extended): Popup("PopupList", "popuplist.xml"), gcn::FocusListener(), mListModel(listModel), - mListBox(new ListBox(widget, listModel)), + mListBox(extended ? new ExtendedListBox(widget, listModel, 0) : + new ListBox(widget, listModel)), mScrollArea(new ScrollArea(mListBox, false)), mDropDown(widget) { |