[qet] [2145] Add new icons for Richtexteditor

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


Revision: 2145
Author:   scorpio810
Date:     2013-05-05 01:52:31 +0200 (Sun, 05 May 2013)
Log Message:
-----------
Add new icons for Richtexteditor

Modified Paths:
--------------
    trunk/qelectrotech.qrc
    trunk/sources/richtext/richtexteditor.cpp

Added Paths:
-----------
    trunk/ico/32x32/format-text-bold.png
    trunk/ico/32x32/format-text-color.png
    trunk/ico/32x32/format-text-italic.png
    trunk/ico/32x32/format-text-underline.png
    trunk/ico/32x32/insert-link.png

Added: trunk/ico/32x32/format-text-bold.png
===================================================================
(Binary files differ)


Property changes on: trunk/ico/32x32/format-text-bold.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: trunk/ico/32x32/format-text-color.png
===================================================================
(Binary files differ)


Property changes on: trunk/ico/32x32/format-text-color.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: trunk/ico/32x32/format-text-italic.png
===================================================================
(Binary files differ)


Property changes on: trunk/ico/32x32/format-text-italic.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: trunk/ico/32x32/format-text-underline.png
===================================================================
(Binary files differ)


Property changes on: trunk/ico/32x32/format-text-underline.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: trunk/ico/32x32/insert-link.png
===================================================================
(Binary files differ)


Property changes on: trunk/ico/32x32/insert-link.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Modified: trunk/qelectrotech.qrc
===================================================================
--- trunk/qelectrotech.qrc	2013-05-04 10:22:13 UTC (rev 2144)
+++ trunk/qelectrotech.qrc	2013-05-04 23:52:31 UTC (rev 2145)
@@ -206,5 +206,8 @@
         <file>LICENSE</file>
         <file>ico/48x48/user-away.png</file>
         <file>ico/48x48/user-away-extended.png</file>
+        <file>ico/32x32/format-text-bold.png</file>
+        <file>ico/32x32/format-text-italic.png</file>
+        <file>ico/32x32/format-text-underline.png</file>
     </qresource>
 </RCC>

Modified: trunk/sources/richtext/richtexteditor.cpp
===================================================================
--- trunk/sources/richtext/richtexteditor.cpp	2013-05-04 10:22:13 UTC (rev 2144)
+++ trunk/sources/richtext/richtexteditor.cpp	2013-05-04 23:52:31 UTC (rev 2145)
@@ -357,19 +357,20 @@
 
     // Bold, italic and underline buttons
 
-    m_bold_action = createCheckableAction(QIcon(),
+    m_bold_action = createCheckableAction
+	(QIcon(":/ico/32x32/format-text-bold.png"),
             tr("Bold"), editor, SLOT(setFontBold(bool)), this);
     m_bold_action->setShortcut(tr("CTRL+B"));
     addAction(m_bold_action);
 
     m_italic_action = createCheckableAction(
-            QIcon(),
+	QIcon(":/ico/32x32/format-text-italic.png");
             tr("Italic"), editor, SLOT(setFontItalic(bool)), this);
     m_italic_action->setShortcut(tr("CTRL+I"));
     addAction(m_italic_action);
 
     m_underline_action = createCheckableAction(
-            QIcon(),
+	QIcon(":/ico/32x32/format-text-underline.png"),
             tr("Underline"), editor, SLOT(setFontUnderline(bool)), this);
     m_underline_action->setShortcut(tr("CTRL+U"));
     addAction(m_underline_action);


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