mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 05:00:33 +01:00
master propertie widget:
can link/unlink slave to master can show element by double clic item on the list reset modification git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2878 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -591,6 +591,7 @@ class LinkElementsCommand : public QUndoCommand {
|
||||
public:
|
||||
// constructor destructor
|
||||
LinkElementsCommand (Element *elmt1, Element *elmt2, QUndoCommand *parent = 0);
|
||||
LinkElementsCommand (Element *elmt1, QList <Element *> &elmtList, QUndoCommand *parent = 0);
|
||||
virtual ~LinkElementsCommand();
|
||||
//methods
|
||||
virtual void undo();
|
||||
@@ -599,7 +600,8 @@ class LinkElementsCommand : public QUndoCommand {
|
||||
private:
|
||||
//attributes
|
||||
Diagram *diagram_;
|
||||
Element *elmt_1, *elmt_2, *previous_report;
|
||||
Element *element_, *previous_report;
|
||||
QList <Element *> elmt_list;
|
||||
bool first_redo;
|
||||
};
|
||||
|
||||
@@ -607,6 +609,7 @@ class unlinkElementsCommand : public QUndoCommand {
|
||||
public:
|
||||
//constructor destructor
|
||||
unlinkElementsCommand (Element *elmt1, Element *elmt2 = 0, QUndoCommand *parent = 0);
|
||||
unlinkElementsCommand (Element *elmt1, QList <Element *> &elmtList, QUndoCommand *parent = 0);
|
||||
virtual ~unlinkElementsCommand();
|
||||
//methods
|
||||
virtual void undo();
|
||||
|
||||
Reference in New Issue
Block a user