QmlJsEditor: fix completion item order

Items with assigned data were preferred over items without data, leading
to always preferring some special functions over objects like parent and
parentChanged.

Change-Id: I69e7e3ee2e80283daa16cd3df0260ebdb9a2b7f9
Fixes: QTCREATORBUG-21527
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
David Schulz
2019-01-24 10:46:53 +01:00
parent 80109f7ab5
commit c96b707cfb

View File

@@ -1026,8 +1026,6 @@ public:
return true; return true;
else if (b->text().isEmpty()) else if (b->text().isEmpty())
return false; return false;
else if (a->isValid() != b->isValid())
return a->isValid();
else if (a->text().at(0).isUpper() && b->text().at(0).isLower()) else if (a->text().at(0).isUpper() && b->text().at(0).isLower())
return false; return false;
else if (a->text().at(0).isLower() && b->text().at(0).isUpper()) else if (a->text().at(0).isLower() && b->text().at(0).isUpper())