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

Renaming a method also renames in Qt header

XMLWordPrintable

    • All

       

      class MyDialog final : public QDialog
      {
      public:   
         void open(const QStringList& content);
      };
      

       

      With this code you get a Warning from Clang code model because open() in MyDialog hides the open() method from QDialog. This is correct.

      No try renaming MyDialog's open() to openContent(). This will also rename open() in the qdialog.h header which should not happen.

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

            bubke Marco Bubke
            silicomancer Bernhard Lindner
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes