From 3e366a6b0309b0650c255f5534a1dc275059c43e Mon Sep 17 00:00:00 2001 From: wmayer Date: Mon, 3 Dec 2012 12:34:12 +0100 Subject: [PATCH] Add icon for cross-sections command --- src/Mod/Part/Gui/Command.cpp | 2 +- src/Mod/Part/Gui/CrossSections.cpp | 2 +- src/Mod/Part/Gui/Resources/Part.qrc | 1 + .../Resources/icons/Part_CrossSections.svg | 222 ++++++++++++++++++ 4 files changed, 225 insertions(+), 2 deletions(-) create mode 100644 src/Mod/Part/Gui/Resources/icons/Part_CrossSections.svg diff --git a/src/Mod/Part/Gui/Command.cpp b/src/Mod/Part/Gui/Command.cpp index 53baa755b..bbbd95cb8 100644 --- a/src/Mod/Part/Gui/Command.cpp +++ b/src/Mod/Part/Gui/Command.cpp @@ -887,7 +887,7 @@ CmdPartCrossSections::CmdPartCrossSections() sToolTipText = QT_TR_NOOP("Cross-sections"); sWhatsThis = "Part_CrossSections"; sStatusTip = sToolTipText; -// sPixmap = "Part_Booleans"; + sPixmap = "Part_CrossSections"; } void CmdPartCrossSections::activated(int iMsg) diff --git a/src/Mod/Part/Gui/CrossSections.cpp b/src/Mod/Part/Gui/CrossSections.cpp index bc07e5a1a..69ca7c93e 100644 --- a/src/Mod/Part/Gui/CrossSections.cpp +++ b/src/Mod/Part/Gui/CrossSections.cpp @@ -502,7 +502,7 @@ TaskCrossSections::TaskCrossSections(const Base::BoundBox3d& bb) { widget = new CrossSections(bb); taskbox = new Gui::TaskView::TaskBox( - Gui::BitmapFactory().pixmap("Part_Section"), + Gui::BitmapFactory().pixmap("Part_CrossSections"), widget->windowTitle(), true, 0); taskbox->groupLayout()->addWidget(widget); Content.push_back(taskbox); diff --git a/src/Mod/Part/Gui/Resources/Part.qrc b/src/Mod/Part/Gui/Resources/Part.qrc index 9246ffeb3..c2ea80ffd 100644 --- a/src/Mod/Part/Gui/Resources/Part.qrc +++ b/src/Mod/Part/Gui/Resources/Part.qrc @@ -23,6 +23,7 @@ icons/Part_Revolve.svg icons/Part_RuledSurface.svg icons/Part_Section.svg + icons/Part_CrossSections.svg icons/Part_Shapebuilder.png icons/Part_ShapeInfo.svg icons/Part_Sphere.svg diff --git a/src/Mod/Part/Gui/Resources/icons/Part_CrossSections.svg b/src/Mod/Part/Gui/Resources/icons/Part_CrossSections.svg new file mode 100644 index 000000000..53bd20b14 --- /dev/null +++ b/src/Mod/Part/Gui/Resources/icons/Part_CrossSections.svg @@ -0,0 +1,222 @@ + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + +