Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
None
-
None
-
Qt Creator 2.1.80
Based on Qt 4.7.0 (64 bit)
Built on Jul 15 2010 at 11:25:25
Qt from 2010-07-15.
Kubuntu 9.10
-
7de836bf851b144ead33a5aea685ed92b9e928ea, a0faf279d5fa11f3e50c699f7c7056326f069e1f, 34c1c10cc0fd5d230a03769767a1019f5a0c3040
Description
It seems that whenever the completion popup is shown and the user presses ';' to simply end a statement and not use the popup, that the first match from the popup is used.
Assume an example where the user is editing a method of a subclass of a QAbstractItemModel and wants to type:
int row;
When the user has typed "int row" and is about to add the last ';' the completion popup will pop up and show a number of matches, of which rowCount() is the first. However, the user doesn't want any of the matches and just ignores the popup and types ';" expecting to end up with "int row;", but will instead end up with "int rowCount();". The first hit was automatically taken even when it was not desired.
In my own case the completion wrongly completed to "int row1;" when I wanted "int row;" and it took me a while to find the error...