diff --git a/reader/widgets/ShortCutShow.cpp b/reader/widgets/ShortCutShow.cpp index b533df99..377421b7 100644 --- a/reader/widgets/ShortCutShow.cpp +++ b/reader/widgets/ShortCutShow.cpp @@ -61,9 +61,27 @@ void ShortCutShow::show() for(ShortCutType type : listType) { QJsonObject group; - group.insert("groupName", tr("Settings")); - QJsonArray items; + QString strType; + switch (type) { + case ShortCutType::Settings: + strType = tr("Settings"); + break; + case ShortCutType::File: + strType = tr("File"); + break; + case ShortCutType::Display: + strType = tr("Display"); + break; + case ShortCutType::Tools: + strType = tr("Tools"); + break; + case ShortCutType::Edit: + strType = tr("Edit"); + break; + } + group.insert("groupName", strType); + QJsonArray items; for (const auto &d : m_shortcutMap[type]) { QJsonObject jsonItem; jsonItem.insert("name", d.second);