mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-24 03:10:52 +01:00
revert some change in comit 2675:
Qt use enum for use flags: Qt is a good exemple to make code git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2686 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -39,7 +39,7 @@ void ReportElement::linkToElement(Element * elmt) {
|
||||
}
|
||||
|
||||
//ensure elmt is a report
|
||||
if (elmt->linkType() == REPORT && i) {
|
||||
if (elmt->linkType() == Report && i) {
|
||||
unLinkAllElements();
|
||||
connected_elements << elmt;
|
||||
connect(elmt, SIGNAL(positionChange(QPointF)), this, SLOT(updateLabel()));
|
||||
@@ -73,7 +73,7 @@ void ReportElement::unLinkAllElements(){
|
||||
* @return the kind of link type
|
||||
*/
|
||||
int ReportElement::linkType() const {
|
||||
return REPORT;
|
||||
return Report;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user