forked from qt-creator/qt-creator
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:
@@ -1026,8 +1026,6 @@ public:
|
||||
return true;
|
||||
else if (b->text().isEmpty())
|
||||
return false;
|
||||
else if (a->isValid() != b->isValid())
|
||||
return a->isValid();
|
||||
else if (a->text().at(0).isUpper() && b->text().at(0).isLower())
|
||||
return false;
|
||||
else if (a->text().at(0).isLower() && b->text().at(0).isUpper())
|
||||
|
Reference in New Issue
Block a user