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

Q_PROPERTY auto formating clones the whole string while deleting a WRITE property

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Qt Creator 8.0.1
    • C/C++/Obj-C++ Support
    • None
    • Linux/Other display system

    Description

      When removing WRITE property concurrently with the variable/function name from the prefilled Q_PROPERTY the autoformatting starts to append the string with every backspace press.

       

      Steps to reproduce:

      • write Q_PROPERTY on .h file and pres tab/enter to prefill the line
      • Change the type and name
      • Q_PROPERTY(int number READ number WRITE setnumber NOTIFY numberChanged)
      • Select text with mouse "WRITE setnumber" and press backspace to remove extra space between number and NOTFIFY
      • Q_PROPERTY(int numbernumbe READ numbernumbernumbe NOTIFY numbernumbeChanged)
      • With every press of the backspace the variable name gets appended to the original

       

      This behavior happens also when user removes READ or NOTIFY with the function name before leaving the autoformatting state. 

      Attachments

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

        Activity

          People

            davschul David Schulz
            vantti Sami Väntti
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes