- 
    
Bug
 - 
    Resolution: Done
 - 
    
  Not Evaluated                     
     - 
    Qt Creator 5.0.0
 - 
    None
 
- 
        
 - 
        3a03b50c7cf5c1ff2d8285c005649d954636dc12 (qt-creator/qt-creator/master)
 
In a method in a newly setup GuiApplication I typed:
QFIleDialog (yes a capital I ... should be i)
Ok, how to fix the 'I' to become an 'i'?
Idea: Use refactoring:
- Use Alt+Enter to ask for the include, that is missing anyway.
 - Use Ctrl+Space to let QtCreator fix the class name.
 
Ok, 1. gives me the option to add include <QFIleDialog> ... with an capital 'I'. I confirm adding it. It is marked with a "non portable path" warning. Cool.
Anyway, for 2. I press Ctrl+Space again (with my cursor still on QFIleInfo) and QtCreator offers me to fix it to QFileInfo ... I confirm. Yeah.
Ok, I remove the "non portable path" warning by positioning the cursor in the "include" statement and press Alt+Enter to have it fixed. Very cool. The waring vanishes.
Now I continue to add a static method ::getOpenFileName() after my "now fixed" QFileDialog.
As I want to have the return value as a local variable I press Alt+Enter again to choose the refactoring option.
But hey: It offers me:
- Add #include <QFileDialog> .... I already have this ... why is it presented here?
 - Add #include <QFIleDialog> ... hey, with a capital 'I' again ... there is no reason to have this
 
I think it should not offer to have an additional #include <QFileDialog> and it should not offer a QFIleDialog to be included, too.