From c9d71e5e2c2214e0459a5d2c2d7ac21706723a59 Mon Sep 17 00:00:00 2001 From: Rafael Date: Wed, 6 Apr 2016 06:48:42 +0200 Subject: [PATCH] qt4 sorting part compile error fixed --- ProfileInterface.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ProfileInterface.cpp b/ProfileInterface.cpp index 6142fe1..6a4796b 100755 --- a/ProfileInterface.cpp +++ b/ProfileInterface.cpp @@ -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()); +#endif int picIndex = pictureKeyList.indexOf(QRegExp(widgetKey)); ui->vlSnapmatic->insertWidget(picIndex, proWidget); }