add locale information to system information

This commit is contained in:
wmayer
2017-07-16 08:14:26 +02:00
parent e6b9ec5dbc
commit b8a1e335dd

View File

@@ -26,6 +26,7 @@
# include <QApplication>
# include <QClipboard>
# include <QDialogButtonBox>
# include <QLocale>
# include <QMutex>
# include <QProcess>
# include <QSysInfo>
@@ -553,6 +554,10 @@ void AboutDialog::on_copyButton_clicked()
#endif
<< endl;
#endif
QLocale loc;
str << "Locale: " << loc.languageToString(loc.language()) << "/"
<< loc.countryToString(loc.country())
<< " (" << loc.name() << ")" << endl;
QClipboard* cb = QApplication::clipboard();
cb->setText(data);