Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F1130
patch.diff
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
klemmma
Jul 10 2014, 11:39 AM
2014-07-10 11:39:52 (UTC+2)
Size
1 KB
Referenced Files
None
Subscribers
None
patch.diff
View Options
From af249847f88ff0ad5232e9569abe884d3baf4c50 Mon Sep 17 00:00:00 2001
From: Martin Klemm <martin.klemm@hs-offenburg.de>
Date: Thu, 10 Jul 2014 11:34:58 +0200
Subject: [PATCH] The context menu actions of the data manager are constructed
with the icon specified in the extension points.
Signed-off-by: Martin Klemm <martin.klemm@hs-offenburg.de>
---
Plugins/org.mitk.gui.qt.datamanager/src/QmitkDataManagerView.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Plugins/org.mitk.gui.qt.datamanager/src/QmitkDataManagerView.cpp b/Plugins/org.mitk.gui.qt.datamanager/src/QmitkDataManagerView.cpp
index f3f152e..05a3921 100644
--- a/Plugins/org.mitk.gui.qt.datamanager/src/QmitkDataManagerView.cpp
+++ b/Plugins/org.mitk.gui.qt.datamanager/src/QmitkDataManagerView.cpp
@@ -248,7 +248,7 @@ void QmitkDataManagerView::CreateQtPartControl(QWidget* parent)
MITK_WARN << "cannot add action \"" << cmLabel << "\" because descriptor " << cmNodeDescriptorName << " does not exist";
continue;
}
- contextMenuAction = new QAction( QString::fromStdString(cmLabel), parent);
+ contextMenuAction = new QAction( QIcon( QString::fromStdString(cmIcon)), QString::fromStdString(cmLabel), parent);
tmpDescriptor->AddAction(contextMenuAction);
m_DescriptorActionList.push_back(std::pair<QmitkNodeDescriptor*, QAction*>(tmpDescriptor,contextMenuAction));
m_ConfElements[contextMenuAction] = *cmActionsIt;
--
1.8.4.msysgit.0
File Metadata
Details
Attached
Mime Type
text/plain
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1094
Default Alt Text
patch.diff (1 KB)
Attached To
Mode
T17907: Neglected icon attribute in the extension point of the QmitkDataManagerView
Attached
Detach File
Event Timeline
klemmma
added a comment.
Jul 10 2014, 11:39 AM
2014-07-10 11:39:52 (UTC+2)
Comment Actions
Patch file
Log In to Comment