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:
scorpio810
2014-01-10 17:56:52 +00:00
parent c4c5267bbf
commit ec9a3c83c3

View File

@@ -45,7 +45,8 @@ void FolioReportProperties::buildRadioList() {
int rep = element_->linkType() == Element::NextReport? Element::PreviousReport : Element::NextReport;
ElementProvider ep(element_->diagram()->project(), element_->diagram());
QList <Element *> elmt_list = ep.freeElement(rep);
qSort(elmt_list);
qDebug() <<elmt_list;
foreach (Element *elmt, elmt_list) {
if (elmt != element_) {
//label for the button