aboutsummaryrefslogtreecommitdiff
path: root/src/qt/qvaluecombobox.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2012-05-08 23:03:41 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2012-05-09 07:45:47 +0200
commit5ac114c7566b7d3aa32b93124ccb5e5e364edc25 (patch)
tree2ef59f40ec0827a957255efb1eaa7fa1e05a12aa /src/qt/qvaluecombobox.cpp
parent6ddf861078e465dcb89e14e8cad6229c7abf64bb (diff)
Make it possible to set user interface language from options dialog
Diffstat (limited to 'src/qt/qvaluecombobox.cpp')
-rw-r--r--src/qt/qvaluecombobox.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qt/qvaluecombobox.cpp b/src/qt/qvaluecombobox.cpp
index c0ad8c12e5..d7ce3d0130 100644
--- a/src/qt/qvaluecombobox.cpp
+++ b/src/qt/qvaluecombobox.cpp
@@ -6,12 +6,12 @@ QValueComboBox::QValueComboBox(QWidget *parent) :
connect(this, SIGNAL(currentIndexChanged(int)), this, SLOT(handleSelectionChanged(int)));
}
-int QValueComboBox::value() const
+QVariant QValueComboBox::value() const
{
- return itemData(currentIndex(), role).toInt();
+ return itemData(currentIndex(), role);
}
-void QValueComboBox::setValue(int value)
+void QValueComboBox::setValue(const QVariant &value)
{
setCurrentIndex(findData(value, role));
}