From 4451d65a33fc5f3de52ea86b27dedc16cd26c5fd Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 24 Dec 2012 12:54:18 +0300 Subject: Change sliders to dropdowns in visual setup page. --- src/gui/widgets/namesmodel.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/gui/widgets/namesmodel.cpp') diff --git a/src/gui/widgets/namesmodel.cpp b/src/gui/widgets/namesmodel.cpp index abfcd6def..299eed355 100644 --- a/src/gui/widgets/namesmodel.cpp +++ b/src/gui/widgets/namesmodel.cpp @@ -49,3 +49,9 @@ std::string NamesModel::getElementAt(int i) return mNames[i]; } + +void NamesModel::fillFromArray(const char *const *const arr, std::size_t sz) +{ + for (int f = 0; f < sz; f ++) + mNames.push_back(gettext(arr[f])); +} -- cgit v1.2.3-60-g2f50