$OpenBSD: patch-src_libs_utils_buildablehelperlibrary_cpp,v 1.1 2016/12/26 15:26:01 zhuk Exp $

Prefer qmake-qt5 to qmake4 by removing the QDir::Reversed flag.

--- src/libs/utils/buildablehelperlibrary.cpp.orig	Tue Aug 23 14:36:42 2016
+++ src/libs/utils/buildablehelperlibrary.cpp	Sat Oct 22 12:44:49 2016
@@ -85,8 +85,7 @@ FileName BuildableHelperLibrary::findSystemQt(const En
                 return FileName::fromString(qmakePath);
         }
 
-        // Prefer qmake-qt5 to qmake-qt4 by sorting the filenames in reverse order.
-        foreach (const QFileInfo &fi, dir.entryInfoList(possibleQMakeCommands(), QDir::Files, QDir::Name | QDir::Reversed)) {
+        foreach (const QFileInfo &fi, dir.entryInfoList(possibleQMakeCommands(), QDir::Files, QDir::Name)) {
             if (fi.fileName() == qmake)
                 continue;
 
