v31.1-roots.1 · Commit 1: [PATCH 01/17] build(roots): establish v31 portability foundation
src/qt/optionsdialog.cpp
Before: src/qt/optionsdialog.cpp · After: src/qt/optionsdialog.cpp
File metadata
index 12446206023434d930b47dcd25b847cabbcde182..679351f45e14461bcedadade81f180dea7c53192 100644
Download original patch · Release notes
Diff rows 1–11 of 11. Line numbers refer to the original before/after files.
+ Added− RemovedUnmarked lines are context.
Scroll the code area horizontally to read long lines. Before is on the left; after is on the right. Unified view fits narrow screens more easily.
src/qt/optionsdialog.cpp
CHANGED
|
@@ -164,7 +164,11 @@ OptionsDialog::OptionsDialog(QWidget* parent, bool enableWallet)
|
|
| 164 |
{
|
| 165 |
/** display language strings as "native language - native country/territory (locale name)", e.g. "Deutsch - Deutschland (de)" */
|
| 166 |
ui->lang->addItem(locale.nativeLanguageName() + QString(" - ") +
|
|
|
|
| 167 |
locale.nativeTerritoryName() +
|
|
|
|
|
|
|
|
|
|
| 168 |
QString(" (") + langStr + QString(")"), QVariant(langStr));
|
| 169 |
|
| 170 |
}
|
|
|
|
| 164 |
{
|
| 165 |
/** display language strings as "native language - native country/territory (locale name)", e.g. "Deutsch - Deutschland (de)" */
|
| 166 |
ui->lang->addItem(locale.nativeLanguageName() + QString(" - ") +
|
| 167 |
+
#if QT_VERSION >= QT_VERSION_CHECK(6, 2, 0)
|
| 168 |
locale.nativeTerritoryName() +
|
| 169 |
+
#else
|
| 170 |
+
locale.nativeCountryName() +
|
| 171 |
+
#endif
|
| 172 |
QString(" (") + langStr + QString(")"), QVariant(langStr));
|
| 173 |
|
| 174 |
}
|