From 453c1d4170745e9f3ca20b1edaede40966c769ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Sat, 11 May 2019 16:05:22 +0200 Subject: Qt/LogConfigWidget: Show log type short names Makes it easier for users to determine which option they need to enable/disable as log messages only show the short name. --- Source/Core/DolphinQt/Config/LogConfigWidget.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Source/Core/DolphinQt/Config/LogConfigWidget.cpp') diff --git a/Source/Core/DolphinQt/Config/LogConfigWidget.cpp b/Source/Core/DolphinQt/Config/LogConfigWidget.cpp index adde3d95f0..5e336a8f93 100644 --- a/Source/Core/DolphinQt/Config/LogConfigWidget.cpp +++ b/Source/Core/DolphinQt/Config/LogConfigWidget.cpp @@ -64,8 +64,10 @@ void LogConfigWidget::CreateWidgets() for (int i = 0; i < LogTypes::NUMBER_OF_LOGS; i++) { - QListWidgetItem* widget = new QListWidgetItem(QString::fromStdString( - LogManager::GetInstance()->GetFullName(static_cast(i)))); + const auto log_type = static_cast(i); + const QString full_name = QString::fromUtf8(LogManager::GetInstance()->GetFullName(log_type)); + const QString short_name = QString::fromUtf8(LogManager::GetInstance()->GetShortName(log_type)); + auto* widget = new QListWidgetItem(QStringLiteral("%1 (%2)").arg(full_name, short_name)); widget->setCheckState(Qt::Unchecked); m_types_list->addItem(widget); } -- cgit v1.2.3