From: vsv Date: Thu, 22 May 2014 06:40:56 +0000 (+0400) Subject: Icon for rename operation added. X-Git-Tag: V_0.2~29^2~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=647cd96fba9efffcf99bb0c71e81f2abdfeeb2a9;p=modules%2Fshaper.git Icon for rename operation added. --- diff --git a/src/XGUI/XGUI_ObjectsBrowser.cpp b/src/XGUI/XGUI_ObjectsBrowser.cpp index e5f8c8355..352fa4ba8 100644 --- a/src/XGUI/XGUI_ObjectsBrowser.cpp +++ b/src/XGUI/XGUI_ObjectsBrowser.cpp @@ -150,7 +150,7 @@ XGUI_ObjectsBrowser::XGUI_ObjectsBrowser(QWidget* theParent) onActivePartChanged(FeaturePtr()); // Create internal actions - QAction* aAction = new QAction(tr("Rename"), this); + QAction* aAction = new QAction(QIcon(":pictures/rename_edit.png"), tr("Rename"), this); aAction->setData("RENAME_CMD"); connect(aAction, SIGNAL(triggered(bool)), this, SLOT(onEditItem())); addAction(aAction); diff --git a/src/XGUI/XGUI_pictures.qrc b/src/XGUI/XGUI_pictures.qrc index ab0bcf2af..8ae03bf23 100644 --- a/src/XGUI/XGUI_pictures.qrc +++ b/src/XGUI/XGUI_pictures.qrc @@ -55,5 +55,6 @@ pictures/assembly.png pictures/activate.png pictures/delete.png + pictures/rename_edit.png diff --git a/src/XGUI/pictures/rename_edit.png b/src/XGUI/pictures/rename_edit.png new file mode 100644 index 000000000..2ba69c328 Binary files /dev/null and b/src/XGUI/pictures/rename_edit.png differ