mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-21 08:40:53 +01:00
The application now includes the folio number when displaying the properties of a selected element.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1324 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -143,6 +143,17 @@ QList<Diagram *> QETProject::diagrams() const {
|
||||
return(diagrams_);
|
||||
}
|
||||
|
||||
/**
|
||||
@param diagram Pointer to a Diagram object
|
||||
@return the folio number of the given diagram object within the project,
|
||||
or -1 if it is not part of this project.
|
||||
Note: this returns 0 for the first diagram, not 1
|
||||
*/
|
||||
int QETProject::folioIndex(const Diagram *diagram) const {
|
||||
// QList::indexOf returns -1 if no item matched.
|
||||
return(diagrams_.indexOf(const_cast<Diagram *>(diagram)));
|
||||
}
|
||||
|
||||
/**
|
||||
@return la collection embarquee de ce projet
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user