mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-31 21:28:51 +00:00
Merge pull request #8094 from leoetlino/log-type-names
Qt/LogConfigWidget: Show log type short names
This commit is contained in:
commit
d2c7a6f239
2 changed files with 7 additions and 5 deletions
|
@ -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<LogTypes::LOG_TYPE>(i))));
|
||||
const auto log_type = static_cast<LogTypes::LOG_TYPE>(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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue