Skip to content
Snippets Groups Projects
Commit 5e1b34e7 authored by Renne Thomas's avatar Renne Thomas
Browse files

grouping emit project change and align menu get existing groups

parent b7a3af5e
No related branches found
No related tags found
1 merge request!20Handle tdf for MsRunStatistics
......@@ -487,6 +487,7 @@ MsIdentificationTableModel::setData(const QModelIndex &index,
if(index.column() ==
(std::int8_t)msIdentificationListColumn::align_groups)
{
emit projectStatusChanged();
if(!new_data.isNull())
{
foreach(MsRunAlignmentGroupSp msrun_alignment_group,
......
......@@ -42,17 +42,17 @@ AlignmentGroupsQMenu::AlignmentGroupsQMenu(MsIdentificationListWindow *parent,
QIcon *add_reference_icon =
new QIcon(":/icons/resources/icons/icon_reference.svg");
mp_addReference = new QAction(*add_reference_icon, "&As msRun reference");
mp_addReference = new QAction(*add_reference_icon, tr("&As msRun reference"));
this->addAction(mp_addReference);
QIcon *remove_reference_icon =
new QIcon(":/icons/resources/icons/icon_remove_reference.svg");
mp_removeReference = new QAction(*remove_reference_icon, "&Remove reference");
mp_removeReference = new QAction(*remove_reference_icon, tr("&Remove reference"));
this->addAction(mp_removeReference);
mp_ungroup = new QAction(
QIcon(":/icons/resources/icons/apache/unicons/icon_ungroup.svg"),
"&Ungroup");
tr("&Ungroup"));
this->addAction(mp_ungroup);
// m_selectedIndexesChecks vector contains multiple verifications
......@@ -91,9 +91,13 @@ AlignmentGroupsQMenu::createGroupsSubMenu()
QIcon(":/icons/resources/icons/apache/unicons/icon_group.svg"));
QIcon *icon = new QIcon(":/icons/resources/icons/mit/jamicons/icon_plus.svg");
mp_newGroup = new QAction(*icon, "&New Group");
mp_newGroup = new QAction(*icon, tr("&New Group"));
mp_subMenuGroup->addAction(mp_newGroup);
mp_subMenuGroup->addSeparator();
foreach(MsRunAlignmentGroupSp group, mp_project->getMsRunAlignmentGroupList())
{
mp_subMenuGroup->addAction(group->getMsRunAlignmentGroupName());
}
}
void
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment