Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 20 additions & 2 deletions reader/widgets/ShortCutShow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Loading