mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-22 01:10:53 +01:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user