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

Handing double-colon `:` when completing existing property names in QML

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: Not Evaluated
    • Resolution: Unresolved
    • Affects Version/s: Qt Creator 4.15.1
    • Fix Version/s: None
    • Labels:
      None

      Description

      Qt Creator suggests inconvenient / breaking things when changing existing properties in QML: it presents a list of available properties, and inserts them together with extra double-colon which was already there. It results in two double-colons in the code which breaks syntax.

      Preferred solution

      Detect double-colon on the right side of a cursor (in case of multiple active cursors, detect for each one individually), and don't insert new one if it's already there.

        Attachments

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

          Activity

            People

            Assignee:
            fawzi Fawzi Mohamed
            Reporter:
            ratijas ivan tkachenko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes