Changeset View
Changeset View
Standalone View
Standalone View
src/qt/optionsdialog.cpp
Show First 20 Lines • Show All 112 Lines • ▼ Show 20 Lines | for (const QString &langStr : translations.entryList()) { | ||||
} else { | } else { | ||||
/** display language strings as "native language (locale name)", | /** display language strings as "native language (locale name)", | ||||
* e.g. "Deutsch (de)" */ | * e.g. "Deutsch (de)" */ | ||||
ui->lang->addItem(locale.nativeLanguageName() + QString(" (") + | ui->lang->addItem(locale.nativeLanguageName() + QString(" (") + | ||||
langStr + QString(")"), | langStr + QString(")"), | ||||
QVariant(langStr)); | QVariant(langStr)); | ||||
} | } | ||||
} | } | ||||
ui->thirdPartyTxUrls->setPlaceholderText("https://example.com/tx/%s"); | |||||
ui->unit->setModel(new BitcoinUnits(this)); | ui->unit->setModel(new BitcoinUnits(this)); | ||||
/* Widget-to-option mapper */ | /* Widget-to-option mapper */ | ||||
mapper = new QDataWidgetMapper(this); | mapper = new QDataWidgetMapper(this); | ||||
mapper->setSubmitPolicy(QDataWidgetMapper::ManualSubmit); | mapper->setSubmitPolicy(QDataWidgetMapper::ManualSubmit); | ||||
mapper->setOrientation(Qt::Vertical); | mapper->setOrientation(Qt::Vertical); | ||||
GUIUtil::ItemDelegate *delegate = new GUIUtil::ItemDelegate(mapper); | GUIUtil::ItemDelegate *delegate = new GUIUtil::ItemDelegate(mapper); | ||||
▲ Show 20 Lines • Show All 295 Lines • Show Last 20 Lines |