[qet] [2735] Minor change: refresh indent

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


Revision: 2735
Author:   scorpio810
Date:     2014-01-11 23:38:30 +0100 (Sat, 11 Jan 2014)
Log Message:
-----------
Minor change: refresh indent

Modified Paths:
--------------
    trunk/sources/diagramcommands.cpp

Modified: trunk/sources/diagramcommands.cpp
===================================================================
--- trunk/sources/diagramcommands.cpp	2014-01-11 18:09:04 UTC (rev 2734)
+++ trunk/sources/diagramcommands.cpp	2014-01-11 22:38:30 UTC (rev 2735)
@@ -55,13 +55,13 @@
 
 /// Annule l'ajout
 void AddElementCommand::undo() {
-	diagram->showMe();
+	diagram -> showMe();
 	diagram -> removeElement(element);
 }
 
 /// Refait l'ajout
 void AddElementCommand::redo() {
-	diagram->showMe();
+	diagram -> showMe();
 	diagram -> addElement(element);
 	element -> setPos(position);
 	element -> setFlags(QGraphicsItem::ItemIsMovable | QGraphicsItem::ItemIsSelectable);
@@ -90,13 +90,13 @@
 
 /// Annule l'ajout
 void AddTextCommand::undo() {
-	diagram->showMe();
+	diagram -> showMe();
 	diagram -> removeIndependentTextItem(textitem);
 }
 
 /// Refait l'ajout
 void AddTextCommand::redo() {
-	diagram->showMe();
+	diagram -> showMe();
 	diagram -> addIndependentTextItem(textitem);
 	textitem -> setPos(position);
 }
@@ -124,13 +124,13 @@
 
 ///Annule l'ajout
 void AddImageCommand::undo() {
-	diagram->showMe();
+	diagram -> showMe();
 	diagram -> removeItem(imageitem);
 }
 
 ///Refait l'ajout
 void AddImageCommand::redo() {
-	diagram->showMe();
+	diagram -> showMe();
 	diagram -> addDiagramImageItem(imageitem);
 	imageitem -> setPos(position - imageitem -> boundingRect().center());
 }
@@ -160,13 +160,13 @@
 
 /// Annule l'ajout
 void AddConductorCommand::undo() {
-	diagram->showMe();
+	diagram -> showMe();
 	diagram -> removeConductor(conductor);
 }
 
 /// Refait l'ajout
 void AddConductorCommand::redo() {
-	diagram->showMe();
+	diagram -> showMe();
 	diagram -> addConductor(conductor);
 }
 
@@ -203,7 +203,7 @@
 
 /// annule les suppressions
 void DeleteElementsCommand::undo() {
-	diagram->showMe();
+	diagram -> showMe();
 	// remet les elements
 	foreach(Element *e, removed_content.elements) {
 		diagram -> addElement(e);
@@ -226,7 +226,7 @@
 
 /// refait les suppressions
 void DeleteElementsCommand::redo() {
-	diagram->showMe();
+	diagram -> showMe();
 	// enleve les conducteurs
 	foreach(Conductor *c, removed_content.conductors(DiagramContent::AnyConductor)) {
 		diagram -> removeConductor(c);
@@ -284,7 +284,7 @@
 
 /// annule le coller
 void PasteDiagramCommand::undo() {
-	diagram->showMe();
+	diagram -> showMe();
 	// remove the conductors
 	foreach(Conductor *c, content.conductorsToMove) diagram -> removeConductor(c);
 	
@@ -300,7 +300,7 @@
 
 /// refait le coller
 void PasteDiagramCommand::redo() {
-	diagram->showMe();
+	diagram -> showMe();
 	if (first_redo) first_redo = false;
 	else {
 		// paste the elements
@@ -391,13 +391,13 @@
 
 /// annule le deplacement
 void MoveElementsCommand::undo() {
-	diagram->showMe();
+	diagram -> showMe();
 	move(-movement);
 }
 
 /// refait le deplacement
 void MoveElementsCommand::redo() {
-	diagram->showMe();
+	diagram -> showMe();
 	if (first_redo) first_redo = false;
 	else move(movement);
 }
@@ -495,13 +495,13 @@
 
 /// annule le deplacement
 void MoveElementsTextsCommand::undo() {
-	diagram->showMe();
+	diagram -> showMe();
 	move(-movement);
 }
 
 /// refait le deplacement
 void MoveElementsTextsCommand::redo() {
-	diagram->showMe();
+	diagram -> showMe();
 	if (first_redo) first_redo = false;
 	else move(movement);
 }
@@ -542,7 +542,7 @@
 
 /// annule le deplacement
 void MoveConductorsTextsCommand::undo() {
-	diagram->showMe();
+	diagram -> showMe();
 	foreach(ConductorTextItem *cti, texts_to_move_.keys()) {
 		QPointF movement = texts_to_move_[cti].first;
 		bool was_already_moved = texts_to_move_[cti].second;
@@ -556,7 +556,7 @@
 
 /// refait le deplacement
 void MoveConductorsTextsCommand::redo() {
-	diagram->showMe();
+	diagram -> showMe();
 	if (first_redo) {
 		first_redo = false;
 	} else {
@@ -631,13 +631,13 @@
 
 /// annule la modification de texte
 void ChangeDiagramTextCommand::undo() {
-	diagram->showMe();
+	diagram -> showMe();
 	text_item -> setHtml(text_before);
 }
 
 /// refait la modification de texte
 void ChangeDiagramTextCommand::redo() {
-	diagram->showMe();
+	diagram -> showMe();
 	if (first_redo) {
 		first_redo = false;
 	} else {
@@ -678,7 +678,7 @@
 
 /// defait le pivotement
 void RotateElementsCommand::undo() {
-	diagram->showMe();
+	diagram -> showMe();
 	foreach(Element *e, elements_to_rotate) {
 		e -> rotateBy(-applied_rotation_angle_);
 	}
@@ -696,7 +696,7 @@
 
 /// refait le pivotement
 void RotateElementsCommand::redo() {
-	diagram->showMe();
+	diagram -> showMe();
 	foreach(Element *e, elements_to_rotate) {
 		e -> rotateBy(applied_rotation_angle_);
 	}
@@ -752,7 +752,7 @@
 	Annule la rotation des textes
 */
 void RotateTextsCommand::undo() {
-	diagram->showMe();
+	diagram -> showMe();
 	foreach(DiagramTextItem *text, texts_to_rotate.keys()) {
 		if (ConductorTextItem *cti = qgraphicsitem_cast<ConductorTextItem *>(text))
 			cti -> forceRotateByUser(previous_rotate_by_user_[cti]);
@@ -764,7 +764,7 @@
 	Applique l'angle de rotation aux textes
 */
 void RotateTextsCommand::redo() {
-	diagram->showMe();
+	diagram -> showMe();
 	foreach(DiagramTextItem *text, texts_to_rotate.keys()) {
 		if (ConductorTextItem *cti = qgraphicsitem_cast<ConductorTextItem *>(text)) {
 			//we grab the previous rotation by user of each ConductorTextItem
@@ -821,14 +821,14 @@
 
 /// Annule la modification du conducteur
 void ChangeConductorCommand::undo() {
-	diagram->showMe();
+	diagram -> showMe();
 	conductor -> setProfile(old_profile, path_type);
 	conductor -> textItem() -> setPos(text_pos_before_mov_);
 }
 
 /// Refait la modification du conducteur
 void ChangeConductorCommand::redo() {
-	diagram->showMe();
+	diagram -> showMe();
 	if (first_redo) {
 		first_redo = false;
 	} else {
@@ -875,7 +875,7 @@
 
 /// Annule la reinitialisation des conducteurs
 void ResetConductorCommand::undo() {
-	diagram->showMe();
+	diagram -> showMe();
 	foreach(Conductor *c, conductors_profiles.keys()) {
 		c -> setProfiles(conductors_profiles[c]);
 	}
@@ -883,7 +883,7 @@
 
 /// Refait la reinitialisation des conducteurs
 void ResetConductorCommand::redo() {
-	diagram->showMe();
+	diagram -> showMe();
 	foreach(Conductor *c, conductors_profiles.keys()) {
 		c -> setProfiles(ConductorProfilesGroup());
 	}
@@ -915,14 +915,14 @@
 
 /// Annule la modification de cartouche
 void ChangeTitleBlockCommand::undo() {
-	diagram->showMe();
+	diagram -> showMe();
 	diagram -> border_and_titleblock.importTitleBlock(old_titleblock);
 	diagram -> invalidate(diagram -> border());
 }
 
 /// Refait la modification de cartouche
 void ChangeTitleBlockCommand::redo() {
-	diagram->showMe();
+	diagram -> showMe();
 	diagram -> border_and_titleblock.importTitleBlock(new_titleblock);
 	diagram -> invalidate(diagram -> border());
 }
@@ -948,13 +948,13 @@
 
 /// Annule les changements apportes au schema
 void ChangeBorderCommand::undo() {
-	diagram->showMe();
+	diagram -> showMe();
 	diagram -> border_and_titleblock.importBorder(old_properties);
 }
 
 /// Refait les changements apportes au schema
 void ChangeBorderCommand::redo() {
-	diagram->showMe();
+	diagram -> showMe();
 	diagram -> border_and_titleblock.importBorder(new_properties);
 }
 
@@ -993,7 +993,7 @@
 	doivent avoir ete definis a l'aide de setNewSettings et setOldSettings
 */
 void ChangeConductorPropertiesCommand::undo() {
-	diagram->showMe();
+	diagram -> showMe();
 	if (old_settings_set && new_settings_set) {
 		conductor -> setProperties(old_properties);
 		conductor -> update();
@@ -1005,7 +1005,7 @@
 	doivent avoir ete definis a l'aide de setNewSettings et setOldSettings
 */
 void ChangeConductorPropertiesCommand::redo() {
-	diagram->showMe();
+	diagram -> showMe();
 	if (old_settings_set && new_settings_set) {
 		conductor -> setProperties(new_properties);
 		conductor -> update();
@@ -1058,7 +1058,7 @@
 	doivent avoir ete definis a l'aide de setNewSettings et setOldSettings
 */
 void ChangeSeveralConductorsPropertiesCommand::undo() {
-	diagram->showMe();
+	diagram -> showMe();
 	if (old_settings_set && new_settings_set) {
 		int i=0;
 		foreach(Conductor *c, conductors) {
@@ -1074,7 +1074,7 @@
 	doivent avoir ete definis a l'aide de setNewSettings et setOldSettings
 */
 void ChangeSeveralConductorsPropertiesCommand::redo() {
-	diagram->showMe();
+	diagram -> showMe();
 	if (old_settings_set && new_settings_set) {
 
 		//new propertie are the same for each conductor
@@ -1121,7 +1121,7 @@
  * @brief ImageResizerCommand::undo set the old size
  */
 void ImageResizerCommand::undo() {
-	diagram->showMe();
+	diagram -> showMe();
 	image_ -> setScale(old_size);
 }
 
@@ -1129,7 +1129,7 @@
  * @brief ImageResizerCommand::redo set the new size
  */
 void ImageResizerCommand::redo() {
-	diagram->showMe();
+	diagram -> showMe();
 	if (old_size<new_size) setText(QObject::tr("Agrandire une image \340 %1 %").arg(new_size*100));
 	else setText(QObject::tr("R\351duire une image \340 %1 %").arg(new_size*100));
 	image_ -> setScale(new_size);


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