mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-04 11:30:52 +01:00
folio report can only be linked to inverted folio report
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2694 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -36,8 +36,10 @@ FolioReportProperties::~FolioReportProperties()
|
||||
* @brief FolioReportProperties::BuildRadioList : build the radio list for each available folio report
|
||||
*/
|
||||
void FolioReportProperties::BuildRadioList() {
|
||||
//Research the invert report of @element_
|
||||
int rep = element_->linkType() == Element::NextReport? Element::PreviousReport : Element::NextReport;
|
||||
ElementProvider ep(element_->diagram()->project(), element_->diagram());
|
||||
QList <Element *> elmt_list = ep.freeElement(Element::Report);
|
||||
QList <Element *> elmt_list = ep.freeElement(rep);
|
||||
|
||||
foreach (Element *elmt, elmt_list) {
|
||||
if (elmt != element_) {
|
||||
|
||||
Reference in New Issue
Block a user