forked from qt-creator/qt-creator
QmlDesigner: Changing order of imports in UI
File imports should be first, because they relate to the project and there are most likely just a view. Change-Id: If7bfc648c694bcc3f010d99b125d7349061bb6db Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
committed by
Tim Jenssen
parent
088972dd29
commit
e05cb92cea
@@ -71,10 +71,10 @@ static bool importLess(const Import &firstImport, const Import &secondImport)
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (firstImport.isLibraryImport() && secondImport.isFileImport())
|
if (firstImport.isLibraryImport() && secondImport.isFileImport())
|
||||||
return true;
|
return false;
|
||||||
|
|
||||||
if (firstImport.isFileImport() && secondImport.isLibraryImport())
|
if (firstImport.isFileImport() && secondImport.isLibraryImport())
|
||||||
return false;
|
return true;
|
||||||
|
|
||||||
if (firstImport.isFileImport() && secondImport.isFileImport())
|
if (firstImport.isFileImport() && secondImport.isFileImport())
|
||||||
return QString::localeAwareCompare(firstImport.file(), secondImport.file()) < 0;
|
return QString::localeAwareCompare(firstImport.file(), secondImport.file()) < 0;
|
||||||
|
Reference in New Issue
Block a user