mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 14:50:53 +01:00
Added count() method to ElementsCollectionItem class and its subclasses.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1216 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -175,6 +175,20 @@ ElementDefinition *ElementDefinition::createElement(const QString &) {
|
||||
return(0);
|
||||
}
|
||||
|
||||
/**
|
||||
@return always true - an element contains nothing but itself
|
||||
*/
|
||||
bool ElementDefinition::isEmpty() {
|
||||
return(false);
|
||||
}
|
||||
|
||||
/**
|
||||
@return always 1
|
||||
*/
|
||||
int ElementDefinition::count() {
|
||||
return(1);
|
||||
}
|
||||
|
||||
/**
|
||||
@return toujours 0 - un element n'est pas une collection
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user