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

Quick fix popup sometimes does not show name of header to include

    XMLWordPrintable

Details

    Description

      1. Have two simple instantiations in a source file without including the needed headers:
        QMessageBox mb;
        QLabel l;
        
      2. Move the cursor to the word "QLabel" and press Alt+Enter.
        You'll see a popup offering to "Add #include <QLabel>".
      3. Press Escape.
      4. Move the cursor to the word "QMessageBox" and press Alt+Enter.
        You'll see a popup offering to "Add #include <QMessageBox>".
      5. Press Enter.
        The said header line will be inserted.
      6. Move the cursor to the word "QLabel" and press Alt+Enter.
        You'll see a popup offering to "#include Header File".

      Shouldn't the same popup be shown in steps 2 and 6?

      Attachments

        Activity

          People

            kosjar Nikolai Kosjar
            rlohning Robert Löhning
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: