qt4 sorting part compile error fixed

This commit is contained in:
Rafael 2016-04-06 06:48:42 +02:00
parent adda96c3ef
commit c9d71e5e2c

View file

@ -161,7 +161,11 @@ void ProfileInterface::insertSnapmaticIPI(QWidget *widget)
QString widgetKey = widgets[proWidget];
QStringList widgetsKeyList = widgets.values();
QStringList pictureKeyList = widgetsKeyList.filter("PIC", Qt::CaseSensitive);
#if QT_VERSION >= 0x050000
qSort(pictureKeyList.rbegin(), pictureKeyList.rend());
#else
qSort(pictureKeyList.begin(), pictureKeyList.end(), qGreater<QString>());
#endif
int picIndex = pictureKeyList.indexOf(QRegExp(widgetKey));
ui->vlSnapmatic->insertWidget(picIndex, proWidget);
}