[qet] [3858] Editor: add Clear Button to qle_text(texteditor)

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


Revision: 3858
Author:   scorpio810
Date:     2015-03-26 18:28:48 +0100 (Thu, 26 Mar 2015)
Log Message:
-----------
Editor: add Clear Button to qle_text(texteditor)

Modified Paths:
--------------
    trunk/sources/editor/qetelementeditor.cpp
    trunk/sources/editor/texteditor.cpp
    trunk/sources/editor/textfieldeditor.cpp

Modified: trunk/sources/editor/qetelementeditor.cpp
===================================================================
--- trunk/sources/editor/qetelementeditor.cpp	2015-03-26 16:49:40 UTC (rev 3857)
+++ trunk/sources/editor/qetelementeditor.cpp	2015-03-26 17:28:48 UTC (rev 3858)
@@ -154,7 +154,7 @@
 	inv_select        = new QAction(                                  tr("Inverser la sélection"),                  this);
 	edit_delete       = new QAction(QET::Icons::EditDelete,           tr("&Supprimer"),                                this);
 	edit_names        = new QAction(QET::Icons::Names,                tr("Éditer le nom et les traductions de l'élément"), this);
-	edit_author		  = new QAction(QET::Icons::UserInformations,     tr("Éditer les informations sur l'auteur"),   this);
+	edit_author       = new QAction(QET::Icons::UserInformations,     tr("Éditer les informations sur l'auteur"),   this);
 	m_edit_properties = new QAction(QET::Icons::ElementEdit,          tr("Éditer les propriétés de l'élément"), this);
 	
 	undo = ce_scene -> undoStack().createUndoAction(this, tr("Annuler"));

Modified: trunk/sources/editor/texteditor.cpp
===================================================================
--- trunk/sources/editor/texteditor.cpp	2015-03-26 16:49:40 UTC (rev 3857)
+++ trunk/sources/editor/texteditor.cpp	2015-03-26 17:28:48 UTC (rev 3858)
@@ -33,6 +33,7 @@
 	qle_x     = new QDoubleSpinBox();
 	qle_y     = new QDoubleSpinBox();
 	qle_text  = new QLineEdit();
+	qle_text  ->setClearButtonEnabled(true);
 	font_size = new QSpinBox();
 	font_size -> setRange(0, 144);
 	black_color_ = new QRadioButton(tr("Noir", "element text part color"));

Modified: trunk/sources/editor/textfieldeditor.cpp
===================================================================
--- trunk/sources/editor/textfieldeditor.cpp	2015-03-26 16:49:40 UTC (rev 3857)
+++ trunk/sources/editor/textfieldeditor.cpp	2015-03-26 17:28:48 UTC (rev 3858)
@@ -32,6 +32,7 @@
 	qle_x     = new QDoubleSpinBox();
 	qle_y     = new QDoubleSpinBox();
 	qle_text  = new QLineEdit();
+	qle_text  ->setClearButtonEnabled(true);
 	font_size = new QSpinBox();
 	font_size -> setRange(0, 144);
 	rotate    = new QCheckBox(tr("Ne pas subir les rotations de l'élément parent"));


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