[qet] [4025] Forget file from previous comit

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


Revision: 4025
Author:   blacksun
Date:     2015-06-21 22:20:27 +0200 (Sun, 21 Jun 2015)
Log Message:
-----------
Forget file from previous comit

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

Modified: trunk/sources/diagramcommands.cpp
===================================================================
--- trunk/sources/diagramcommands.cpp	2015-06-21 20:16:41 UTC (rev 4024)
+++ trunk/sources/diagramcommands.cpp	2015-06-21 20:20:27 UTC (rev 4025)
@@ -1053,44 +1053,3 @@
 		}
 	}
 }
-
-
-/**
- * @brief ChangeShapeStyleCommand::ChangeShapeStyleCommand Constructor
- * @param shape
- * @param old_ old style of shape
- * @param new_ new style of shape
- * @param parent undocommand parent
- */
-ChangeShapeStyleCommand::ChangeShapeStyleCommand(QetShapeItem *shape, Qt::PenStyle &old_, Qt::PenStyle &new_, QUndoCommand *parent):
-	QUndoCommand(parent),
-	shape_(shape),
-	old_style (old_),
-	new_style (new_),
-	diagram(shape->diagram())
-{
-	setText(QObject::tr("Changer le style d'une shape"));
-}
-
-/**
- * @brief ChangeShapeStyleCommand::~ChangeShapeStyleCommand destructor
- */
-ChangeShapeStyleCommand::~ChangeShapeStyleCommand() {}
-
-/**
- * @brief ChangeShapeStyleCommand::undo set the old style
- */
-void ChangeShapeStyleCommand::undo() {
-	shape_ -> setStyle(old_style);
-	diagram -> showMe();
-	QUndoCommand::undo();
-}
-
-/**
- * @brief ChangeShapeStyleCommand::redo set the new style
- */
-void ChangeShapeStyleCommand::redo() {
-	shape_ -> setStyle(new_style);
-	diagram -> showMe();
-	QUndoCommand::redo();
-}

Modified: trunk/sources/diagramcommands.h
===================================================================
--- trunk/sources/diagramcommands.h	2015-06-21 20:16:41 UTC (rev 4024)
+++ trunk/sources/diagramcommands.h	2015-06-21 20:20:27 UTC (rev 4025)
@@ -509,23 +509,4 @@
 	/// track whether post-change properties were set
 	bool new_settings_set;
 };
-
-
-class ChangeShapeStyleCommand : public QUndoCommand {
-	//constructor and destructor
-	public:
-	ChangeShapeStyleCommand (QetShapeItem *shape, Qt::PenStyle &old_, Qt::PenStyle &new_, QUndoCommand *parent = 0);
-	virtual ~ChangeShapeStyleCommand();
-
-	//methods
-	public:
-	virtual void undo();
-	virtual void redo();
-
-	//attributes
-	private:
-	QetShapeItem *shape_;
-	Qt::PenStyle old_style, new_style;
-	Diagram *diagram;
-};
 #endif


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