Diagram : Constructor need a QETProject

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3564 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2014-12-21 12:50:26 +00:00
parent 8477d4d928
commit a5b1a92beb
5 changed files with 49 additions and 51 deletions

View File

@@ -24,16 +24,12 @@ qreal DiagramFolioList::colWidths[4] = {0.1, 0.55, 0.2, 0.15};
/**
* @brief DiagramFolioList::DiagramFolioList
* Constructor
* @param project QETproject *: The project from which this constructor was called. Important to setProject().
* @param parent parent QObject
* @param project : The project of this diagram and also parent QObject
*/
DiagramFolioList::DiagramFolioList( QETProject *project, QObject *parent) : Diagram(parent) {
if (project) {
setProject(project);
id = project -> getFolioSheetsQuantity();
}
else
id = 0;
DiagramFolioList::DiagramFolioList( QETProject *project) :
Diagram(project)
{
id = project -> getFolioSheetsQuantity();
}
/**