From 647cd96fba9efffcf99bb0c71e81f2abdfeeb2a9 Mon Sep 17 00:00:00 2001 From: vsv Date: Thu, 22 May 2014 10:40:56 +0400 Subject: [PATCH] Icon for rename operation added. --- src/XGUI/XGUI_ObjectsBrowser.cpp | 2 +- src/XGUI/XGUI_pictures.qrc | 1 + src/XGUI/pictures/rename_edit.png | Bin 0 -> 836 bytes 3 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 src/XGUI/pictures/rename_edit.png 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 0000000000000000000000000000000000000000..2ba69c3283c8393510b27a140881888a6b738783 GIT binary patch literal 836 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b zK-vS0-A-oPfdtD69Mgd`SU*F|v9*U87?^TBT^vI!PS;NM_7P4LX+3XmJon`n$Hr~O z9IB2^4vxtN7mtMc7AWpA6g;xF@U2(!qR#5Dyu!xyGdvzSC7XztF6!)LWp;bAkTHAZ zmVi@JKF!FqzWlOh_OuY|s_WnD{#!oZKmEX>TYkNtO}BpiTi5vdGxwBSNgy5t@2SS}CXI}lN!4UrRj=b2qdlxkV zm#{I}8Q;4X-gPV0V}8KdT~vRvBkeQTg-M+?%q}QhOKgtNCTXoWSa^NhWS8(?R#rjZ+>L zUyd%DSCH2%a%ofE^5jBIWAmRSd=6X(_!t%oZCLJb-Df-Zs^z!03t8OS>1@)h^`vCl zJg)Zrsn@0p)whSUR+#r*`zh}xoEsh)JhjC2@ePj>-(MDHCY%Yf2g07Rg+*F8?LYhE z>|=?}d5n|eQlIVnf2-!(12+$^Gx|&stP4W!IfSmgqqKdpzQ2f*zTE7;;c>@h@(KkG zurkOp$S`zVy>riSW|{xp)vYPT=~*hKKMcOa+`IdOYr&klck%1PgXS)^&DZ@~yu@VA z|M_3;pYr|nAR%^U0WcM+mbgZgq$HN4S|t~y0x1R~149E{10!8SgAfBlD?4po1c=IRteN#V4@2|My4T#Ky?;YMn<{@ra%o7e=pqt)WG2B>gTe~DWM4f DfCpcL literal 0 HcmV?d00001 -- 2.39.2