mirror of
https://github.com/izzy2lost/dolphin.git
synced 2026-06-19 01:16:48 -07:00
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.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user