mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-23 02:10:52 +01:00
folio report: add user able to make custom label.
Revamp GUI dialog for new diagram configuration. git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2749 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -531,7 +531,7 @@ bool Diagram::fromXml(QDomElement &document, QPointF position, bool consider_inf
|
||||
if (type_id.startsWith("embed://")) element_location.setProject(project_);
|
||||
|
||||
int state = 0;
|
||||
Element *nvel_elmt = ElementFactory::Instance()->createElement(element_location, 0, 0, &state);
|
||||
Element *nvel_elmt = ElementFactory::Instance()->createElement(element_location, 0, this, &state);
|
||||
if (state) {
|
||||
QString debug_message = QString("Diagram::fromXml() : Le chargement de la description de l'element %1 a echoue avec le code d'erreur %2").arg(element_location.path()).arg(state);
|
||||
qDebug() << qPrintable(debug_message);
|
||||
@@ -1162,6 +1162,7 @@ QETProject *Diagram::project() const {
|
||||
*/
|
||||
void Diagram::setProject(QETProject *project) {
|
||||
project_ = project;
|
||||
connect(project_, SIGNAL(reportPropertiesChanged(QString)), this, SIGNAL(reportPropertiesChanged(QString)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user