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

Renaming a method also renames in Qt header

    XMLWordPrintable

Details

    • All

    Description

       

      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.

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes