v30.3-roots.1 · Commit 5: [PATCH 05/68] feat(qt): preserve Roots identity and GUI support on Core 30.3
src/qt/optionsdialog.cpp
Before: src/qt/optionsdialog.cpp · After: src/qt/optionsdialog.cpp
File metadata
index 0a0e44f6f5bc05711e420dfd216367ea63e99a81..e0571335bf525f0542e46fb7d65c215339cc4949 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 |
}
|