]> Git Repo - VerusCoin.git/blobdiff - src/qt/qvaluecombobox.cpp
fix #1843 by changing 2 GUI shortcuts
[VerusCoin.git] / src / qt / qvaluecombobox.cpp
index c0ad8c12e5ae926c52c75fd222687cbbd7168717..d7ce3d0130b47d7349688a612bec70fe9bcb0876 100644 (file)
@@ -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));
 }
This page took 0.024023 seconds and 4 git commands to generate.