mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-06 05:10:52 +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:
@@ -1021,6 +1021,15 @@ void Diagram::setProject(QETProject *project) {
|
||||
project_ = project;
|
||||
}
|
||||
|
||||
/**
|
||||
@return the folio number of this diagram within its parent project, or -1
|
||||
if it is has no parent project
|
||||
*/
|
||||
int Diagram::folioIndex() const {
|
||||
if (!project_) return(-1);
|
||||
return(project_ -> folioIndex(this));
|
||||
}
|
||||
|
||||
/**
|
||||
@param fallback_to_project When a diagram does not have a declared version,
|
||||
this method will use the one declared by its parent project only if
|
||||
|
||||
Reference in New Issue
Block a user