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

Wrong style in automatically created function

    XMLWordPrintable

Details

    • 1487997551fb982d6c2c9a95b6ff43cfad5ddbcf (qt-creator/qt-creator/4.9)

    Description

      1. Start creating a new Qt plugin using "File" -> "New File or Project..." -> "Library" -> "C++ Library".
      2. On the first page of the wizard, select "Qt Plugin" from the combo box.
      3. Finish the wizard using defaults.
      4. Open the created *.cpp file.
        You'll see the line:
        QObject * GenericPlugin::create(const QString &name, const QString &spec)
        

      There should not be a white space after the "*", so the line should be:

      QObject *GenericPlugin::create(const QString &name, const QString &spec)
      

      Found while updating Squish test tst_APTW03.

      Creator 4.8 does not create the line automatically, but only through "Insert Virtual Functions of Base Classes". Then, it creates the line correctly, without the wrong white space.

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            rlohning Robert Löhning
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes