mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
Search and replace : Diagram properties can be changed (and mass changed) through the search and replace widget.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5564 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -20,6 +20,21 @@
|
||||
#include "qet.h"
|
||||
#include <algorithm>
|
||||
|
||||
/**
|
||||
* @brief DiagramContext::add
|
||||
* Add all value of @other to this.
|
||||
* If a key already exist, the value is replaced.
|
||||
* If a key doesn't exist, she will be added.
|
||||
* All other keys of this context, which are not present in @other, stay unchanged.
|
||||
* @param other
|
||||
*/
|
||||
void DiagramContext::add(DiagramContext other)
|
||||
{
|
||||
for (QString key : other.keys()) {
|
||||
addValue(key, other.value(key));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@return a list containing all the keys in the context object.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user