Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-17318

Cpp:QmlJS: Strange behaviour of GenericProposalWidget

    XMLWordPrintable

Details

    Description

      Steps to reproduce:

      • create Widget Application from template
      • add some members to the mainwindow.h with names longer than 3 letters
      • switch back to the mainwindow.cpp, place cursor at the end of the line
        ui->setupUi(this);

        and hit Enter/Return

      • start typing 3 letters of one of the members
        • generic proposal widget comes up
        • hit Shift+Del
        • generic proposal widget stays open (Note: I'd say this should close here already)
        • hit Enter/Return
        • current selected stuff (should be most likely the member you've started typing) is inserted kind of wrong (feels like the starting position for inserting is still the same as before removing the line and this results in removing the closing curly brace of the ctor up to the first char of the dtor)

      Note: this can be reproduced with a Quick Application as well when opening a qml file and trying to add a new member assignment inside any qml item and following the steps from "start typing..." on.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kosjar Nikolai Kosjar
            cstenger Christian Stenger
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes