[qet] [2098] Delete some QAction in RichText |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 2098
Author: cfdev
Date: 2013-04-10 17:14:49 +0200 (Wed, 10 Apr 2013)
Log Message:
-----------
Delete some QAction in RichText
Modified Paths:
--------------
trunk/sources/richtext/richtexteditor.cpp
Modified: trunk/sources/richtext/richtexteditor.cpp
===================================================================
--- trunk/sources/richtext/richtexteditor.cpp 2013-04-10 11:10:02 UTC (rev 2097)
+++ trunk/sources/richtext/richtexteditor.cpp 2013-04-10 15:14:49 UTC (rev 2098)
@@ -402,7 +402,11 @@
tr("Justify"), editor, 0, alignment_group);
addAction(m_align_justify_action);
- addSeparator();
+ m_align_justify_action -> setVisible( false );
+ m_align_center_action -> setVisible( false );
+ m_align_left_action -> setVisible( false );
+ m_align_right_action -> setVisible( false );
+ //addSeparator();
// Superscript and subscript buttons
@@ -421,7 +425,7 @@
m_valign_sup_action -> setVisible( false );
m_valign_sub_action -> setVisible( false );
-/* addSeparator();
+ //addSeparator();
// Insert hyperlink and image buttons
@@ -433,7 +437,8 @@
connect(m_image_action, SIGNAL(triggered()), SLOT(insertImage()));
addAction(m_image_action);
- addSeparator();*/
+ m_image_action -> setVisible( false );
+ addSeparator();
// Text color button
connect(m_color_action, SIGNAL(colorChanged(QColor)),