From 5c90a717130500110be47390b971625971e30943 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Mon, 11 Nov 2019 19:32:48 -0500 Subject: [PATCH] Add tags to Info module context menu. --- src/app/ModuleWidget.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/app/ModuleWidget.cpp b/src/app/ModuleWidget.cpp index e5f86987..4a0b525c 100644 --- a/src/app/ModuleWidget.cpp +++ b/src/app/ModuleWidget.cpp @@ -10,6 +10,7 @@ #include #include #include +#include #include #include @@ -53,6 +54,12 @@ struct ModuleInfoItem : ui::MenuItem { versionLabel->text = "v" + model->plugin->version; menu->addChild(versionLabel); + for (int tagId : model->tags) { + ui::MenuLabel* tagLabel = new ui::MenuLabel; + tagLabel->text = tag::tagAliases[tagId][0]; + menu->addChild(tagLabel); + } + if (!model->plugin->author.empty()) { if (!model->plugin->authorUrl.empty()) { ModuleUrlItem* authorItem = new ModuleUrlItem;