[qet] [2516] Add news icons.

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 2516
Author:   scorpio810
Date:     2013-09-11 17:30:49 +0200 (Wed, 11 Sep 2013)
Log Message:
-----------
Add news icons.

Modified Paths:
--------------
    trunk/qelectrotech.qrc
    trunk/sources/qetdiagrameditor.cpp
    trunk/sources/qeticons.cpp

Added Paths:
-----------
    trunk/ico/22x22/transform-rotate.png
    trunk/ico/22x22/transform-scale.png

Added: trunk/ico/22x22/transform-rotate.png
===================================================================
(Binary files differ)


Property changes on: trunk/ico/22x22/transform-rotate.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: trunk/ico/22x22/transform-scale.png
===================================================================
(Binary files differ)


Property changes on: trunk/ico/22x22/transform-scale.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Modified: trunk/qelectrotech.qrc
===================================================================
--- trunk/qelectrotech.qrc	2013-09-11 14:19:38 UTC (rev 2515)
+++ trunk/qelectrotech.qrc	2013-09-11 15:30:49 UTC (rev 2516)
@@ -64,7 +64,6 @@
         <file>ico/16x16/masquer.png</file>
         <file>ico/16x16/neutral.png</file>
         <file>ico/16x16/north.png</file>
-        <file>ico/16x16/object-rotate-right.png</file>
         <file>ico/16x16/orientations.png</file>
         <file>ico/16x16/phase.png</file>
         <file>ico/16x16/preferences-desktop-user.png</file>
@@ -167,6 +166,7 @@
         <file>ico/22x22/textfield.png</file>
         <file>ico/22x22/text.png</file>
         <file>ico/22x22/text-xml.png</file>
+	<file>ico/22x22/transform-scale.png</file>
         <file>ico/22x22/two_pages.png</file>
         <file>ico/22x22/view_fit_width.png</file>
         <file>ico/22x22/view_fit_window.png</file>

Modified: trunk/sources/qetdiagrameditor.cpp
===================================================================
--- trunk/sources/qetdiagrameditor.cpp	2013-09-11 14:19:38 UTC (rev 2515)
+++ trunk/sources/qetdiagrameditor.cpp	2013-09-11 15:30:49 UTC (rev 2516)
@@ -1227,7 +1227,8 @@
 		//edit image
 		else if (selected_image) {
 			edit_selection -> setText(tr("\311diter l'image", "edit image"));
-			edit_selection ->setIconVisibleInMenu(false);
+			edit_selection -> setIcon(QET::Icons::resize_image);
+			edit_selection -> setIconVisibleInMenu(true);
 		}
 	}
 	//not an editable item

Modified: trunk/sources/qeticons.cpp
===================================================================
--- trunk/sources/qeticons.cpp	2013-09-11 14:19:38 UTC (rev 2515)
+++ trunk/sources/qeticons.cpp	2013-09-11 15:30:49 UTC (rev 2516)
@@ -153,6 +153,7 @@
 		QIcon ZoomOriginal;
 		QIcon ZoomOut;
 		QIcon adding_image;
+		QIcon resize_image;
 	}
 }
 
@@ -312,7 +313,6 @@
 	NewDiagram          .addFile(":/ico/128x128/diagram.png");
 	North               .addFile(":/ico/16x16/north.png");
 	ObjectLocked        .addFile(":/ico/22x22/object-locked.png");
-	ObjectRotateRight   .addFile(":/ico/16x16/object-rotate-right.png");
 	ObjectRotateRight   .addFile(":/ico/22x22/object-rotate-right.png");
 	ObjectUnlocked      .addFile(":/ico/22x22/object-unlocked.png");
 	Orientations        .addFile(":/ico/16x16/orientations.png");
@@ -350,6 +350,7 @@
 	Raise               .addFile(":/ico/22x22/raise.png");
 	Remove              .addFile(":/ico/16x16/list-remove.png");
 	Remove              .addFile(":/ico/22x22/list-remove.png");
+	resize_image        .addFile(":/ico/22x22/transform-scale.png");
 	Restore             .addFile(":/ico/22x22/restaurer.png");
 	SendBackward        .addFile(":/ico/22x22/send_backward.png");
 	Settings            .addFile(":/ico/128x128/settings.png");


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/