element class: replace enum linkertype by #define (better way for use flags)

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2675 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2013-12-29 13:27:46 +00:00
parent 0d37b13dab
commit 5eecfedd02
8 changed files with 26 additions and 24 deletions

View File

@@ -34,10 +34,10 @@ ElementProvider::ElementProvider(QETProject *prj, Diagram *diagram)
* All returned element are free, ie element aren't connected with another element
* @param filter
* the filter for search element
* (the filter must be the enum linkerType in Element.h)
* (You can find all filter with the #define in Element.h)
* @return
*/
QList <Element *> ElementProvider::FreeElement(int filter) {
QList <Element *> ElementProvider::FreeElement(const int filter) const{
QList <Element *> free_elmt;
//serch in all diagram