mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 06:58:57 +01:00
Make it possible to set user interface language from options dialog
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user