mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-22 01:10:53 +01:00
Add sorting the list of report folio
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2730 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -45,7 +45,8 @@ void FolioReportProperties::buildRadioList() {
|
|||||||
int rep = element_->linkType() == Element::NextReport? Element::PreviousReport : Element::NextReport;
|
int rep = element_->linkType() == Element::NextReport? Element::PreviousReport : Element::NextReport;
|
||||||
ElementProvider ep(element_->diagram()->project(), element_->diagram());
|
ElementProvider ep(element_->diagram()->project(), element_->diagram());
|
||||||
QList <Element *> elmt_list = ep.freeElement(rep);
|
QList <Element *> elmt_list = ep.freeElement(rep);
|
||||||
|
qSort(elmt_list);
|
||||||
|
qDebug() <<elmt_list;
|
||||||
foreach (Element *elmt, elmt_list) {
|
foreach (Element *elmt, elmt_list) {
|
||||||
if (elmt != element_) {
|
if (elmt != element_) {
|
||||||
//label for the button
|
//label for the button
|
||||||
|
|||||||
Reference in New Issue
Block a user