summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorhjk <qtc-commiter@nokia.com>2008-12-02 16:19:05 +0100
committerhjk <qtc-commiter@nokia.com>2008-12-02 16:19:05 +0100
commitcf11b696431d26920f54598c8f03f0a5cf822ffa (patch)
tree9387102d435481132b721fde8ca062c5b8a4f73f /src/plugins
parent10e963fb6134b3974901707daa99f5a94d696bed (diff)
downloadqt-creator-cf11b696431d26920f54598c8f03f0a5cf822ffa.tar.gz
more code cosmetics
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/help/docsettingspage.cpp2
-rw-r--r--src/plugins/help/docsettingspage.h5
-rw-r--r--src/plugins/help/help_global.h12
-rw-r--r--src/plugins/help/helpengine.cpp26
-rw-r--r--src/plugins/help/helpengine.h13
-rw-r--r--src/plugins/help/helpfindsupport.cpp8
-rw-r--r--src/plugins/help/helpfindsupport.h1
-rw-r--r--src/plugins/help/helpindexfilter.cpp1
-rw-r--r--src/plugins/help/helpindexfilter.h1
-rw-r--r--src/plugins/help/helpmode.cpp4
-rw-r--r--src/plugins/help/helpmode.h1
-rw-r--r--src/plugins/help/helpplugin.cpp24
-rw-r--r--src/plugins/help/helpplugin.h1
-rw-r--r--src/plugins/help/indextoolwindow.cpp9
-rw-r--r--src/plugins/help/indextoolwindow.h5
-rw-r--r--src/plugins/help/indexwindow.h6
-rw-r--r--src/plugins/help/searchwidget.h2
-rw-r--r--src/plugins/perforce/annotationhighlighter.cpp5
-rw-r--r--src/plugins/perforce/annotationhighlighter.h7
-rw-r--r--src/plugins/perforce/changenumberdialog.cpp1
-rw-r--r--src/plugins/perforce/changenumberdialog.h9
-rw-r--r--src/plugins/perforce/p4.h1
-rw-r--r--src/plugins/perforce/pendingchangesdialog.cpp1
-rw-r--r--src/plugins/perforce/pendingchangesdialog.h7
-rw-r--r--src/plugins/perforce/perforceconstants.h29
-rw-r--r--src/plugins/perforce/perforceeditor.cpp1
-rw-r--r--src/plugins/perforce/perforceeditor.h1
-rw-r--r--src/plugins/perforce/perforceoutputwindow.cpp9
-rw-r--r--src/plugins/perforce/perforceoutputwindow.h3
-rw-r--r--src/plugins/perforce/perforceplugin.cpp1
-rw-r--r--src/plugins/perforce/perforceplugin.h2
-rw-r--r--src/plugins/perforce/perforcesettings.cpp6
-rw-r--r--src/plugins/perforce/perforcesettings.h8
-rw-r--r--src/plugins/perforce/perforcesubmiteditor.cpp5
-rw-r--r--src/plugins/perforce/perforcesubmiteditor.h1
-rw-r--r--src/plugins/perforce/perforcesubmiteditorwidget.cpp6
-rw-r--r--src/plugins/perforce/perforcesubmiteditorwidget.h1
-rw-r--r--src/plugins/perforce/perforceversioncontrol.cpp6
-rw-r--r--src/plugins/perforce/perforceversioncontrol.h8
-rw-r--r--src/plugins/perforce/settingspage.cpp1
-rw-r--r--src/plugins/perforce/settingspage.h1
-rw-r--r--src/plugins/perforce/workbenchclientuser.cpp1
-rw-r--r--src/plugins/perforce/workbenchclientuser.h12
-rw-r--r--src/plugins/projectexplorer/abstractprocess.h3
-rw-r--r--src/plugins/projectexplorer/abstractprocessstep.cpp4
-rw-r--r--src/plugins/projectexplorer/abstractprocessstep.h4
-rw-r--r--src/plugins/projectexplorer/allprojectsfilter.cpp4
-rw-r--r--src/plugins/projectexplorer/allprojectsfilter.h1
-rw-r--r--src/plugins/projectexplorer/allprojectsfind.cpp1
-rw-r--r--src/plugins/projectexplorer/allprojectsfind.h1
-rw-r--r--src/plugins/projectexplorer/applicationlauncher.h1
-rw-r--r--src/plugins/projectexplorer/applicationlauncher_win.cpp5
-rw-r--r--src/plugins/projectexplorer/applicationlauncher_x11.cpp1
-rw-r--r--src/plugins/projectexplorer/applicationrunconfiguration.cpp2
-rw-r--r--src/plugins/projectexplorer/applicationrunconfiguration.h1
-rw-r--r--src/plugins/projectexplorer/buildconfiguration.cpp1
-rw-r--r--src/plugins/projectexplorer/buildconfiguration.h5
-rw-r--r--src/plugins/projectexplorer/buildmanager.cpp1
-rw-r--r--src/plugins/projectexplorer/buildmanager.h1
-rw-r--r--src/plugins/projectexplorer/buildparserinterface.cpp1
-rw-r--r--src/plugins/projectexplorer/buildparserinterface.h1
-rw-r--r--src/plugins/projectexplorer/buildprogress.cpp1
-rw-r--r--src/plugins/projectexplorer/buildprogress.h1
-rw-r--r--src/plugins/projectexplorer/buildsettingspropertiespage.cpp1
-rw-r--r--src/plugins/projectexplorer/buildsettingspropertiespage.h1
-rw-r--r--src/plugins/projectexplorer/buildstep.cpp1
-rw-r--r--src/plugins/projectexplorer/buildstep.h1
-rw-r--r--src/plugins/projectexplorer/buildstepspage.cpp1
-rw-r--r--src/plugins/projectexplorer/buildstepspage.h1
-rw-r--r--src/plugins/projectexplorer/compileoutputwindow.cpp1
-rw-r--r--src/plugins/projectexplorer/compileoutputwindow.h1
-rw-r--r--src/plugins/projectexplorer/consoleprocess.h1
-rw-r--r--src/plugins/projectexplorer/consoleprocess_unix.cpp1
-rw-r--r--src/plugins/projectexplorer/consoleprocess_win.cpp1
-rw-r--r--src/plugins/projectexplorer/currentprojectfilter.cpp3
-rw-r--r--src/plugins/projectexplorer/currentprojectfilter.h1
-rw-r--r--src/plugins/projectexplorer/currentprojectfind.cpp1
-rw-r--r--src/plugins/projectexplorer/currentprojectfind.h1
-rw-r--r--src/plugins/projectexplorer/customexecutablerunconfiguration.cpp1
-rw-r--r--src/plugins/projectexplorer/customexecutablerunconfiguration.h1
-rw-r--r--src/plugins/projectexplorer/dependenciesdialog.cpp1
-rw-r--r--src/plugins/projectexplorer/dependenciesdialog.h1
-rw-r--r--src/plugins/projectexplorer/directoryproject.cpp1
-rw-r--r--src/plugins/projectexplorer/editorconfiguration.cpp1
-rw-r--r--src/plugins/projectexplorer/editorconfiguration.h5
-rw-r--r--src/plugins/projectexplorer/editorsettingspropertiespage.cpp1
-rw-r--r--src/plugins/projectexplorer/editorsettingspropertiespage.h1
-rw-r--r--src/plugins/projectexplorer/environment.cpp1
-rw-r--r--src/plugins/projectexplorer/environment.h9
-rw-r--r--src/plugins/projectexplorer/environmenteditmodel.cpp1
-rw-r--r--src/plugins/projectexplorer/environmenteditmodel.h7
-rw-r--r--src/plugins/projectexplorer/foldernavigationwidget.cpp26
-rw-r--r--src/plugins/projectexplorer/foldernavigationwidget.h1
-rw-r--r--src/plugins/projectexplorer/iprojectmanager.h2
-rw-r--r--src/plugins/projectexplorer/iprojectproperties.h1
-rw-r--r--src/plugins/projectexplorer/metatypedeclarations.h2
-rw-r--r--src/plugins/projectexplorer/nodesvisitor.cpp1
-rw-r--r--src/plugins/projectexplorer/nodesvisitor.h3
-rw-r--r--src/plugins/projectexplorer/outputwindow.cpp1
-rw-r--r--src/plugins/projectexplorer/outputwindow.h7
-rw-r--r--src/plugins/projectexplorer/persistentsettings.cpp1
-rw-r--r--src/plugins/projectexplorer/persistentsettings.h5
-rw-r--r--src/plugins/projectexplorer/pluginfilefactory.cpp1
-rw-r--r--src/plugins/projectexplorer/pluginfilefactory.h6
-rw-r--r--src/plugins/projectexplorer/processstep.cpp1
-rw-r--r--src/plugins/projectexplorer/processstep.h1
-rw-r--r--src/plugins/projectexplorer/project.cpp4
-rw-r--r--src/plugins/projectexplorer/project.h6
-rw-r--r--src/plugins/projectexplorer/projectexplorer.cpp1
-rw-r--r--src/plugins/projectexplorer/projectexplorer.h7
-rw-r--r--src/plugins/projectexplorer/projectexplorer_export.h12
-rw-r--r--src/plugins/projectexplorer/projectexplorerconstants.h7
-rw-r--r--src/plugins/projectexplorer/projectfilewizardextension.cpp6
-rw-r--r--src/plugins/projectexplorer/projectfilewizardextension.h1
-rw-r--r--src/plugins/projectexplorer/projectmodels.cpp138
-rw-r--r--src/plugins/projectexplorer/projectmodels.h1
-rw-r--r--src/plugins/projectexplorer/projectnodes.cpp1
-rw-r--r--src/plugins/projectexplorer/projectnodes.h1
-rw-r--r--src/plugins/projectexplorer/projecttreewidget.cpp1
-rw-r--r--src/plugins/projectexplorer/projecttreewidget.h1
-rw-r--r--src/plugins/projectexplorer/projectwindow.cpp4
-rw-r--r--src/plugins/projectexplorer/projectwindow.h1
-rw-r--r--src/plugins/projectexplorer/projectwizardpage.cpp1
-rw-r--r--src/plugins/projectexplorer/projectwizardpage.h5
-rw-r--r--src/plugins/projectexplorer/removefiledialog.cpp1
-rw-r--r--src/plugins/projectexplorer/removefiledialog.h4
-rw-r--r--src/plugins/projectexplorer/runconfiguration.cpp1
-rw-r--r--src/plugins/projectexplorer/runconfiguration.h1
-rw-r--r--src/plugins/projectexplorer/runsettingspropertiespage.cpp1
-rw-r--r--src/plugins/projectexplorer/runsettingspropertiespage.h7
-rw-r--r--src/plugins/projectexplorer/scriptwrappers.cpp1
-rw-r--r--src/plugins/projectexplorer/scriptwrappers.h1
-rw-r--r--src/plugins/projectexplorer/session.cpp5
-rw-r--r--src/plugins/projectexplorer/session.h1
-rw-r--r--src/plugins/projectexplorer/sessiondialog.cpp6
-rw-r--r--src/plugins/projectexplorer/sessiondialog.h6
-rw-r--r--src/plugins/projectexplorer/taskwindow.cpp1
-rw-r--r--src/plugins/projectexplorer/taskwindow.h3
-rw-r--r--src/plugins/projectexplorer/winguiprocess.cpp3
-rw-r--r--src/plugins/projectexplorer/winguiprocess.h12
-rw-r--r--src/plugins/qhelpproject/qhelpproject.cpp9
-rw-r--r--src/plugins/qhelpproject/qhelpproject.h12
-rw-r--r--src/plugins/qhelpproject/qhelpprojectitems.cpp3
-rw-r--r--src/plugins/qhelpproject/qhelpprojectitems.h12
-rw-r--r--src/plugins/qhelpproject/qhelpprojectmanager.cpp1
-rw-r--r--src/plugins/qhelpproject/qhelpprojectmanager.h1
-rw-r--r--src/plugins/qt4projectmanager/applicationlauncher.h5
-rw-r--r--src/plugins/qt4projectmanager/buildoptionspage.cpp5
-rw-r--r--src/plugins/qt4projectmanager/buildparserfactory.cpp3
-rw-r--r--src/plugins/qt4projectmanager/buildparserfactory.h8
-rw-r--r--src/plugins/qt4projectmanager/cesdkhandler.cpp5
-rw-r--r--src/plugins/qt4projectmanager/cesdkhandler.h21
-rw-r--r--src/plugins/qt4projectmanager/deployhelper.cpp3
-rw-r--r--src/plugins/qt4projectmanager/deployhelper.h1
-rw-r--r--src/plugins/qt4projectmanager/directorywatcher.cpp1
-rw-r--r--src/plugins/qt4projectmanager/directorywatcher.h12
-rw-r--r--src/plugins/qt4projectmanager/embeddedpropertiespage.cpp1
-rw-r--r--src/plugins/qt4projectmanager/embeddedpropertiespage.h3
-rw-r--r--src/plugins/qt4projectmanager/gccparser.cpp1
-rw-r--r--src/plugins/qt4projectmanager/gccparser.h12
-rw-r--r--src/plugins/qt4projectmanager/gccpreprocessor.cpp1
-rw-r--r--src/plugins/qt4projectmanager/gccpreprocessor.h5
-rw-r--r--src/plugins/qt4projectmanager/gdbmacrosbuildstep.cpp3
-rw-r--r--src/plugins/qt4projectmanager/gdbmacrosbuildstep.h6
-rw-r--r--src/plugins/qt4projectmanager/headerpath.h6
-rw-r--r--src/plugins/qt4projectmanager/makestep.cpp5
-rw-r--r--src/plugins/qt4projectmanager/makestep.h8
-rw-r--r--src/plugins/qt4projectmanager/msvcenvironment.cpp1
-rw-r--r--src/plugins/qt4projectmanager/msvcenvironment.h8
-rw-r--r--src/plugins/qt4projectmanager/msvcparser.cpp3
-rw-r--r--src/plugins/qt4projectmanager/msvcparser.h10
-rw-r--r--src/plugins/qt4projectmanager/profilecache.cpp1
-rw-r--r--src/plugins/qt4projectmanager/profilecache.h1
-rw-r--r--src/plugins/qt4projectmanager/profileeditor.cpp2
-rw-r--r--src/plugins/qt4projectmanager/profileeditor.h10
-rw-r--r--src/plugins/qt4projectmanager/profileeditorfactory.cpp2
-rw-r--r--src/plugins/qt4projectmanager/profileeditorfactory.h2
-rw-r--r--src/plugins/qt4projectmanager/profilehighlighter.cpp1
-rw-r--r--src/plugins/qt4projectmanager/profilehighlighter.h4
-rw-r--r--src/plugins/qt4projectmanager/profilereader.cpp1
-rw-r--r--src/plugins/qt4projectmanager/profilereader.h6
-rw-r--r--src/plugins/qt4projectmanager/projectloadwizard.cpp4
-rw-r--r--src/plugins/qt4projectmanager/projectloadwizard.h18
-rw-r--r--src/plugins/qt4projectmanager/qmakebuildstepfactory.cpp2
-rw-r--r--src/plugins/qt4projectmanager/qmakebuildstepfactory.h2
-rw-r--r--src/plugins/qt4projectmanager/qmakestep.cpp2
-rw-r--r--src/plugins/qt4projectmanager/qmakestep.h1
-rw-r--r--src/plugins/qt4projectmanager/qt4buildconfigwidget.cpp8
-rw-r--r--src/plugins/qt4projectmanager/qt4buildconfigwidget.h5
-rw-r--r--src/plugins/qt4projectmanager/qt4buildenvironmentwidget.cpp8
-rw-r--r--src/plugins/qt4projectmanager/qt4buildenvironmentwidget.h6
-rw-r--r--src/plugins/qt4projectmanager/qt4nodes.cpp2
-rw-r--r--src/plugins/qt4projectmanager/qt4nodes.h1
-rw-r--r--src/plugins/qt4projectmanager/qt4project.cpp2
-rw-r--r--src/plugins/qt4projectmanager/qt4project.h1
-rw-r--r--src/plugins/qt4projectmanager/qt4projectmanager.cpp2
-rw-r--r--src/plugins/qt4projectmanager/qt4projectmanager.h5
-rw-r--r--src/plugins/qt4projectmanager/qt4projectmanagerconstants.h2
-rw-r--r--src/plugins/qt4projectmanager/qt4projectmanagerenums.h3
-rw-r--r--src/plugins/qt4projectmanager/qt4projectmanagerplugin.cpp2
-rw-r--r--src/plugins/qt4projectmanager/qt4projectmanagerplugin.h5
-rw-r--r--src/plugins/qt4projectmanager/qt4runconfiguration.cpp3
-rw-r--r--src/plugins/qt4projectmanager/qt4runconfiguration.h1
-rw-r--r--src/plugins/qt4projectmanager/qtversionmanager.cpp2
-rw-r--r--src/plugins/qt4projectmanager/qtversionmanager.h16
-rw-r--r--src/plugins/qt4projectmanager/speinfo.cpp4
-rw-r--r--src/plugins/qt4projectmanager/speinfo.h11
-rw-r--r--src/plugins/qt4projectmanager/wizards/consoleappwizard.cpp7
-rw-r--r--src/plugins/qt4projectmanager/wizards/consoleappwizard.h1
-rw-r--r--src/plugins/qt4projectmanager/wizards/consoleappwizarddialog.cpp5
-rw-r--r--src/plugins/qt4projectmanager/wizards/consoleappwizarddialog.h1
-rw-r--r--src/plugins/qt4projectmanager/wizards/filespage.cpp4
-rw-r--r--src/plugins/qt4projectmanager/wizards/filespage.h9
-rw-r--r--src/plugins/qt4projectmanager/wizards/guiappwizard.cpp6
-rw-r--r--src/plugins/qt4projectmanager/wizards/guiappwizard.h3
-rw-r--r--src/plugins/qt4projectmanager/wizards/guiappwizarddialog.cpp12
-rw-r--r--src/plugins/qt4projectmanager/wizards/guiappwizarddialog.h1
-rw-r--r--src/plugins/qt4projectmanager/wizards/libraryparameters.cpp9
-rw-r--r--src/plugins/qt4projectmanager/wizards/libraryparameters.h1
-rw-r--r--src/plugins/qt4projectmanager/wizards/librarywizard.cpp5
-rw-r--r--src/plugins/qt4projectmanager/wizards/librarywizard.h1
-rw-r--r--src/plugins/qt4projectmanager/wizards/librarywizarddialog.cpp5
-rw-r--r--src/plugins/qt4projectmanager/wizards/librarywizarddialog.h1
-rw-r--r--src/plugins/qt4projectmanager/wizards/modulespage.cpp1
-rw-r--r--src/plugins/qt4projectmanager/wizards/modulespage.h7
-rw-r--r--src/plugins/qt4projectmanager/wizards/qtprojectparameters.cpp13
-rw-r--r--src/plugins/qt4projectmanager/wizards/qtprojectparameters.h1
-rw-r--r--src/plugins/qt4projectmanager/wizards/qtwizard.cpp1
-rw-r--r--src/plugins/qt4projectmanager/wizards/qtwizard.h1
-rw-r--r--src/plugins/qtestlib/qtestlibplugin.h2
-rw-r--r--src/plugins/qtscripteditor/qtscripteditor.cpp1
-rw-r--r--src/plugins/qtscripteditor/qtscripteditor.h1
-rw-r--r--src/plugins/qtscripteditor/qtscripteditoractionhandler.cpp1
-rw-r--r--src/plugins/qtscripteditor/qtscripteditoractionhandler.h1
-rw-r--r--src/plugins/qtscripteditor/qtscripteditorconstants.h10
-rw-r--r--src/plugins/qtscripteditor/qtscripteditorfactory.cpp1
-rw-r--r--src/plugins/qtscripteditor/qtscripteditorfactory.h1
-rw-r--r--src/plugins/qtscripteditor/qtscripteditorplugin.cpp1
-rw-r--r--src/plugins/qtscripteditor/qtscripteditorplugin.h1
-rw-r--r--src/plugins/qtscripteditor/qtscripthighlighter.cpp1
-rw-r--r--src/plugins/qtscripteditor/qtscripthighlighter.h1
-rw-r--r--src/plugins/quickopen/basefilefilter.cpp1
-rw-r--r--src/plugins/quickopen/basefilefilter.h1
-rw-r--r--src/plugins/quickopen/directoryfilter.cpp1
-rw-r--r--src/plugins/quickopen/directoryfilter.h1
-rw-r--r--src/plugins/quickopen/directoryparser.cpp1
-rw-r--r--src/plugins/quickopen/directoryparser.h5
-rw-r--r--src/plugins/quickopen/filesystemfilter.cpp1
-rw-r--r--src/plugins/quickopen/filesystemfilter.h11
-rw-r--r--src/plugins/quickopen/iquickopenfilter.cpp1
-rw-r--r--src/plugins/quickopen/iquickopenfilter.h1
-rw-r--r--src/plugins/quickopen/opendocumentsfilter.cpp1
-rw-r--r--src/plugins/quickopen/opendocumentsfilter.h1
-rw-r--r--src/plugins/quickopen/quickopen_global.h12
-rw-r--r--src/plugins/quickopen/quickopenconstants.h13
-rw-r--r--src/plugins/quickopen/quickopenfiltersfilter.cpp1
-rw-r--r--src/plugins/quickopen/quickopenfiltersfilter.h1
-rw-r--r--src/plugins/quickopen/quickopenmanager.cpp1
-rw-r--r--src/plugins/quickopen/quickopenmanager.h1
-rw-r--r--src/plugins/quickopen/quickopenplugin.cpp1
-rw-r--r--src/plugins/quickopen/quickopenplugin.h1
-rw-r--r--src/plugins/quickopen/quickopentoolwindow.h5
-rw-r--r--src/plugins/quickopen/settingspage.cpp1
-rw-r--r--src/plugins/quickopen/settingspage.h1
-rw-r--r--src/plugins/regexp/regexpplugin.cpp1
-rw-r--r--src/plugins/regexp/regexpplugin.h7
-rw-r--r--src/plugins/regexp/regexpwindow.cpp1
-rw-r--r--src/plugins/regexp/regexpwindow.h7
-rw-r--r--src/plugins/regexp/settings.cpp6
-rw-r--r--src/plugins/regexp/settings.h1
-rw-r--r--src/plugins/resourceeditor/resourceeditorconstants.h7
-rw-r--r--src/plugins/resourceeditor/resourceeditorfactory.cpp1
-rw-r--r--src/plugins/resourceeditor/resourceeditorfactory.h1
-rw-r--r--src/plugins/resourceeditor/resourceeditorplugin.cpp1
-rw-r--r--src/plugins/resourceeditor/resourceeditorplugin.h1
-rw-r--r--src/plugins/resourceeditor/resourceeditorw.cpp11
-rw-r--r--src/plugins/resourceeditor/resourceeditorw.h3
-rw-r--r--src/plugins/resourceeditor/resourcewizard.cpp14
-rw-r--r--src/plugins/resourceeditor/resourcewizard.h2
-rw-r--r--src/plugins/snippets/inputwidget.cpp1
-rw-r--r--src/plugins/snippets/inputwidget.h5
-rw-r--r--src/plugins/snippets/snippetscompletion.cpp2
-rw-r--r--src/plugins/snippets/snippetscompletion.h5
-rw-r--r--src/plugins/snippets/snippetspec.cpp1
-rw-r--r--src/plugins/snippets/snippetspec.h1
-rw-r--r--src/plugins/snippets/snippetsplugin.cpp1
-rw-r--r--src/plugins/snippets/snippetsplugin.h1
-rw-r--r--src/plugins/snippets/snippetswindow.cpp1
-rw-r--r--src/plugins/snippets/snippetswindow.h1
-rw-r--r--src/plugins/subversion/annotationhighlighter.cpp8
-rw-r--r--src/plugins/subversion/annotationhighlighter.h7
-rw-r--r--src/plugins/subversion/changenumberdialog.cpp1
-rw-r--r--src/plugins/subversion/changenumberdialog.h14
-rw-r--r--src/plugins/subversion/settingspage.cpp1
-rw-r--r--src/plugins/subversion/settingspage.h15
-rw-r--r--src/plugins/subversion/subversionconstants.h31
-rw-r--r--src/plugins/subversion/subversioncontrol.cpp7
-rw-r--r--src/plugins/subversion/subversioncontrol.h9
-rw-r--r--src/plugins/subversion/subversioneditor.cpp8
-rw-r--r--src/plugins/subversion/subversioneditor.h1
-rw-r--r--src/plugins/subversion/subversionoutputwindow.cpp1
-rw-r--r--src/plugins/subversion/subversionoutputwindow.h5
-rw-r--r--src/plugins/subversion/subversionplugin.cpp1
-rw-r--r--src/plugins/subversion/subversionplugin.h1
-rw-r--r--src/plugins/subversion/subversionsettings.cpp9
-rw-r--r--src/plugins/subversion/subversionsettings.h11
-rw-r--r--src/plugins/subversion/subversionsubmiteditor.cpp8
-rw-r--r--src/plugins/subversion/subversionsubmiteditor.h1
-rw-r--r--src/plugins/texteditor/basefilefind.cpp1
-rw-r--r--src/plugins/texteditor/basefilefind.h1
-rw-r--r--src/plugins/texteditor/basetextdocument.cpp1
-rw-r--r--src/plugins/texteditor/basetextdocument.h3
-rw-r--r--src/plugins/texteditor/basetexteditor.cpp2
-rw-r--r--src/plugins/texteditor/basetexteditor.h2
-rw-r--r--src/plugins/texteditor/basetexteditor_p.h1
-rw-r--r--src/plugins/texteditor/basetextmark.cpp4
-rw-r--r--src/plugins/texteditor/basetextmark.h7
-rw-r--r--src/plugins/texteditor/codecselector.cpp36
-rw-r--r--src/plugins/texteditor/codecselector.h9
-rw-r--r--src/plugins/texteditor/completionsupport.cpp1
-rw-r--r--src/plugins/texteditor/completionsupport.h2
-rw-r--r--src/plugins/texteditor/completionwidget.cpp1
-rw-r--r--src/plugins/texteditor/completionwidget.h1
-rw-r--r--src/plugins/texteditor/displaysettings.cpp1
-rw-r--r--src/plugins/texteditor/displaysettings.h1
-rw-r--r--src/plugins/texteditor/findinfiles.cpp1
-rw-r--r--src/plugins/texteditor/findinfiles.h1
-rw-r--r--src/plugins/texteditor/fontsettings.cpp1
-rw-r--r--src/plugins/texteditor/fontsettings.h1
-rw-r--r--src/plugins/texteditor/fontsettingspage.cpp1
-rw-r--r--src/plugins/texteditor/fontsettingspage.h1
-rw-r--r--src/plugins/texteditor/generalsettingspage.cpp1
-rw-r--r--src/plugins/texteditor/generalsettingspage.h1
-rw-r--r--src/plugins/texteditor/icompletioncollector.h1
-rw-r--r--src/plugins/texteditor/itexteditable.h1
-rw-r--r--src/plugins/texteditor/itexteditor.h1
-rw-r--r--src/plugins/texteditor/linenumberfilter.cpp1
-rw-r--r--src/plugins/texteditor/linenumberfilter.h1
-rw-r--r--src/plugins/texteditor/plaintexteditor.cpp1
-rw-r--r--src/plugins/texteditor/plaintexteditor.h1
-rw-r--r--src/plugins/texteditor/plaintexteditorfactory.cpp1
-rw-r--r--src/plugins/texteditor/plaintexteditorfactory.h1
-rw-r--r--src/plugins/texteditor/storagesettings.cpp2
-rw-r--r--src/plugins/texteditor/storagesettings.h4
-rw-r--r--src/plugins/texteditor/tabsettings.cpp4
-rw-r--r--src/plugins/texteditor/tabsettings.h1
-rw-r--r--src/plugins/texteditor/textblockiterator.cpp1
-rw-r--r--src/plugins/texteditor/textblockiterator.h7
-rw-r--r--src/plugins/texteditor/texteditor_global.h12
-rw-r--r--src/plugins/texteditor/texteditoractionhandler.cpp1
-rw-r--r--src/plugins/texteditor/texteditoractionhandler.h1
-rw-r--r--src/plugins/texteditor/texteditorconstants.h1
-rw-r--r--src/plugins/texteditor/texteditorplugin.cpp1
-rw-r--r--src/plugins/texteditor/texteditorplugin.h1
-rw-r--r--src/plugins/texteditor/texteditorsettings.cpp1
-rw-r--r--src/plugins/texteditor/texteditorsettings.h1
-rw-r--r--src/plugins/texteditor/textfilewizard.cpp5
-rw-r--r--src/plugins/texteditor/textfilewizard.h1
-rw-r--r--src/plugins/vcsbase/baseannotationhighlighter.cpp4
-rw-r--r--src/plugins/vcsbase/baseannotationhighlighter.h5
-rw-r--r--src/plugins/vcsbase/basevcseditorfactory.cpp1
-rw-r--r--src/plugins/vcsbase/basevcseditorfactory.h8
-rw-r--r--src/plugins/vcsbase/basevcssubmiteditorfactory.cpp6
-rw-r--r--src/plugins/vcsbase/basevcssubmiteditorfactory.h10
-rw-r--r--src/plugins/vcsbase/diffhighlighter.cpp1
-rw-r--r--src/plugins/vcsbase/diffhighlighter.h3
-rw-r--r--src/plugins/vcsbase/submiteditorfile.cpp11
-rw-r--r--src/plugins/vcsbase/submiteditorfile.h3
-rw-r--r--src/plugins/vcsbase/vcsbase_global.h12
-rw-r--r--src/plugins/vcsbase/vcsbaseconstants.h17
-rw-r--r--src/plugins/vcsbase/vcsbaseeditor.cpp3
-rw-r--r--src/plugins/vcsbase/vcsbaseeditor.h9
-rw-r--r--src/plugins/vcsbase/vcsbaseplugin.cpp1
-rw-r--r--src/plugins/vcsbase/vcsbaseplugin.h1
-rw-r--r--src/plugins/vcsbase/vcsbasesubmiteditor.cpp3
-rw-r--r--src/plugins/vcsbase/vcsbasesubmiteditor.h9
-rw-r--r--src/plugins/vcsbase/vcsbasetextdocument.cpp7
-rw-r--r--src/plugins/vcsbase/vcsbasetextdocument.h1
378 files changed, 960 insertions, 669 deletions
diff --git a/src/plugins/help/docsettingspage.cpp b/src/plugins/help/docsettingspage.cpp
index 52d423014e..fe01a3acbb 100644
--- a/src/plugins/help/docsettingspage.cpp
+++ b/src/plugins/help/docsettingspage.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "docsettingspage.h"
#include <QtGui/QFileDialog>
@@ -42,7 +43,6 @@ DocSettingsPage::DocSettingsPage(QHelpEngine *helpEngine)
: m_helpEngine(helpEngine),
m_registeredDocs(false)
{
-
}
QString DocSettingsPage::name() const
diff --git a/src/plugins/help/docsettingspage.h b/src/plugins/help/docsettingspage.h
index 85e331691b..93b518a7f4 100644
--- a/src/plugins/help/docsettingspage.h
+++ b/src/plugins/help/docsettingspage.h
@@ -34,10 +34,11 @@
#ifndef DOCSETTINGSPAGE_H
#define DOCSETTINGSPAGE_H
-#include <QtGui/QWidget>
+#include "ui_docsettingspage.h"
+
#include <coreplugin/dialogs/ioptionspage.h>
-#include "ui_docsettingspage.h"
+#include <QtGui/QWidget>
QT_FORWARD_DECLARE_CLASS(QHelpEngine)
diff --git a/src/plugins/help/help_global.h b/src/plugins/help/help_global.h
index 8f3e782e77..e0d66c58ec 100644
--- a/src/plugins/help/help_global.h
+++ b/src/plugins/help/help_global.h
@@ -30,18 +30,6 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
-/****************************************************************************
-**
-** Copyright (C) 1992-$THISYEAR$ Trolltech AS. All rights reserved.
-**
-** This file is part of the $MODULE$ of the Qt Toolkit.
-**
-** $LICENSE$
-**
-** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
-** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
-**
-****************************************************************************/
#ifndef HELP_GLOBAL_H
#define HELP_GLOBAL_H
diff --git a/src/plugins/help/helpengine.cpp b/src/plugins/help/helpengine.cpp
index 49a48115a1..db259f7aa0 100644
--- a/src/plugins/help/helpengine.cpp
+++ b/src/plugins/help/helpengine.cpp
@@ -30,14 +30,15 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
+#include "helpengine.h"
+#include "config.h"
+
#include <QtCore/QDebug>
#include <QtCore/QDir>
#include <QtCore/QDateTime>
#include <QtCore/QCoreApplication>
-#include "helpengine.h"
-#include "config.h"
-
using namespace Help::Internal;
static bool verifyDirectory(const QString &str)
@@ -52,7 +53,8 @@ static bool verifyDirectory(const QString &str)
return true;
}
-struct IndexKeyword {
+struct IndexKeyword
+{
IndexKeyword(const QString &kw, const QString &l)
: keyword(kw), link(l) {}
IndexKeyword() : keyword(QString()), link(QString()) {}
@@ -193,12 +195,6 @@ QModelIndex IndexListModel::filter(const QString &s, const QString &real)
-
-
-
-
-
-
HelpEngine::HelpEngine(QObject *parent, const QString &defaultQtVersionPath)
: QObject(parent)
{
@@ -344,13 +340,6 @@ QString HelpEngine::home() const
-
-
-
-
-
-
-
TitleMapThread::TitleMapThread(HelpEngine *he)
: QThread(he)
{
@@ -488,9 +477,6 @@ void TitleMapThread::buildContentDict()
}
-
-
-
IndexThread::IndexThread(HelpEngine *he)
: QThread(he)
{
diff --git a/src/plugins/help/helpengine.h b/src/plugins/help/helpengine.h
index cbb9cc3f37..e3cb08a151 100644
--- a/src/plugins/help/helpengine.h
+++ b/src/plugins/help/helpengine.h
@@ -30,9 +30,12 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef HELPENGINE_H
#define HELPENGINE_H
+#include "docuparser.h"
+
#include <QtCore/QThread>
#include <QtCore/QPair>
#include <QtCore/QMap>
@@ -40,8 +43,6 @@
#include <QtCore/QMutex>
#include <QtGui/QStringListModel>
-#include "docuparser.h"
-
namespace Help {
namespace Internal {
@@ -129,7 +130,7 @@ class HelpEngine : public QObject
Q_OBJECT
public:
- HelpEngine(QObject *parent, const QString& defaultQtVersionPath);
+ HelpEngine(QObject *parent, const QString &defaultQtVersionPath);
~HelpEngine();
void init();
QList<QPair<QString, ContentList> > contents() const { return contentList; }
@@ -176,7 +177,7 @@ private:
bool contentsOnly;
};
-} //namespace Internal
-} //namespace Help
+} // namespace Internal
+} // namespace Help
-#endif
+#endif // HELPENGINE_H
diff --git a/src/plugins/help/helpfindsupport.cpp b/src/plugins/help/helpfindsupport.cpp
index 56243c723c..83ec2d1570 100644
--- a/src/plugins/help/helpfindsupport.cpp
+++ b/src/plugins/help/helpfindsupport.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "helpfindsupport.h"
#include "helpviewer.h"
@@ -48,6 +49,7 @@ bool HelpFindSupport::isEnabled() const
{
return true;
}
+
QString HelpFindSupport::currentFindString() const
{
Q_ASSERT(m_centralWidget);
@@ -61,8 +63,10 @@ QString HelpFindSupport::currentFindString() const
#endif
}
-
-QString HelpFindSupport::completedFindString() const { return QString(); }
+QString HelpFindSupport::completedFindString() const
+{
+ return QString();
+}
bool HelpFindSupport::findIncremental(const QString &txt, QTextDocument::FindFlags findFlags)
{
diff --git a/src/plugins/help/helpfindsupport.h b/src/plugins/help/helpfindsupport.h
index 51eef1f2dc..a2105dfe29 100644
--- a/src/plugins/help/helpfindsupport.h
+++ b/src/plugins/help/helpfindsupport.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef HELPFINDSUPPORT_H
#define HELPFINDSUPPORT_H
diff --git a/src/plugins/help/helpindexfilter.cpp b/src/plugins/help/helpindexfilter.cpp
index 0fc113c9a0..989ed18f2a 100644
--- a/src/plugins/help/helpindexfilter.cpp
+++ b/src/plugins/help/helpindexfilter.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "helpindexfilter.h"
#include "helpplugin.h"
diff --git a/src/plugins/help/helpindexfilter.h b/src/plugins/help/helpindexfilter.h
index 26f6b38566..0e4e2743de 100644
--- a/src/plugins/help/helpindexfilter.h
+++ b/src/plugins/help/helpindexfilter.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef HELPINDEXFILTER_H
#define HELPINDEXFILTER_H
diff --git a/src/plugins/help/helpmode.cpp b/src/plugins/help/helpmode.cpp
index 49023da60b..f206773f35 100644
--- a/src/plugins/help/helpmode.cpp
+++ b/src/plugins/help/helpmode.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "helpmode.h"
#include "helpplugin.h"
@@ -43,7 +44,8 @@ using namespace Help::Internal;
HelpMode::HelpMode(QWidget *widget, QWidget *centralWidget, QObject *parent):
BaseMode(tr("Help"),
Constants::ID_MODE_HELP,
- QIcon((QLatin1String(":/fancyactionbar/images/mode_Reference.png"))), Constants::P_MODE_HELP, widget, parent),
+ QIcon((QLatin1String(":/fancyactionbar/images/mode_Reference.png"))),
+ Constants::P_MODE_HELP, widget, parent),
m_centralWidget(centralWidget)
{
m_centralWidget->layout()->setSpacing(0);
diff --git a/src/plugins/help/helpmode.h b/src/plugins/help/helpmode.h
index 753c35d84a..458b7dc5c4 100644
--- a/src/plugins/help/helpmode.h
+++ b/src/plugins/help/helpmode.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef HELPMODE_H
#define HELPMODE_H
diff --git a/src/plugins/help/helpplugin.cpp b/src/plugins/help/helpplugin.cpp
index 73dc3cae06..c96fcf2847 100644
--- a/src/plugins/help/helpplugin.cpp
+++ b/src/plugins/help/helpplugin.cpp
@@ -44,6 +44,18 @@
#include "helpfindsupport.h"
#include "searchwidget.h"
+#include <extensionsystem/pluginmanager.h>
+#include <coreplugin/icore.h>
+#include <coreplugin/coreconstants.h>
+#include <coreplugin/modemanager.h>
+#include <coreplugin/uniqueidmanager.h>
+#include <coreplugin/actionmanager/actionmanagerinterface.h>
+#include <coreplugin/minisplitter.h>
+#include <coreplugin/modemanager.h>
+#include <coreplugin/rightpane.h>
+#include <coreplugin/sidebar.h>
+#include <coreplugin/welcomemode.h>
+
#include <QtCore/QDebug>
#include <QtCore/qplugin.h>
#include <QtCore/QFileInfo>
@@ -58,18 +70,6 @@
#include <QtGui/QComboBox>
#include <QtHelp/QHelpEngine>
-#include <extensionsystem/pluginmanager.h>
-#include <coreplugin/icore.h>
-#include <coreplugin/coreconstants.h>
-#include <coreplugin/modemanager.h>
-#include <coreplugin/uniqueidmanager.h>
-#include <coreplugin/actionmanager/actionmanagerinterface.h>
-#include <coreplugin/minisplitter.h>
-#include <coreplugin/modemanager.h>
-#include <coreplugin/rightpane.h>
-#include <coreplugin/sidebar.h>
-#include <coreplugin/welcomemode.h>
-
using namespace Help;
using namespace Help::Internal;
diff --git a/src/plugins/help/helpplugin.h b/src/plugins/help/helpplugin.h
index 95845fb5d1..5f50b48a56 100644
--- a/src/plugins/help/helpplugin.h
+++ b/src/plugins/help/helpplugin.h
@@ -35,6 +35,7 @@
#define HELPPLUGIN_H
#include "help_global.h"
+
#include <extensionsystem/iplugin.h>
#include <QtCore/QMap>
diff --git a/src/plugins/help/indextoolwindow.cpp b/src/plugins/help/indextoolwindow.cpp
index 6a6f8c5348..07a4ee68ce 100644
--- a/src/plugins/help/indextoolwindow.cpp
+++ b/src/plugins/help/indextoolwindow.cpp
@@ -30,6 +30,11 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
+#include "indextoolwindow.h"
+#include "helpengine.h"
+#include "topicchooser.h"
+
#include <QtCore/QDebug>
#include <QtGui/QKeyEvent>
#include <QtGui/QFocusEvent>
@@ -39,10 +44,6 @@
#include <QtGui/QListView>
#include <QtGui/QApplication>
-#include "indextoolwindow.h"
-#include "helpengine.h"
-#include "topicchooser.h"
-
using namespace Help::Internal;
IndexToolWidget::IndexToolWidget()
diff --git a/src/plugins/help/indextoolwindow.h b/src/plugins/help/indextoolwindow.h
index 37c420184c..6792ca5b92 100644
--- a/src/plugins/help/indextoolwindow.h
+++ b/src/plugins/help/indextoolwindow.h
@@ -30,14 +30,15 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef INDEXTOOLWINDOW_H
#define INDEXTOOLWINDOW_H
+#include <coreplugin/iview.h>
+
#include <QtCore/QModelIndex>
#include <QtGui/QWidget>
-#include <coreplugin/iview.h>
-
class QListView;
class QLineEdit;
diff --git a/src/plugins/help/indexwindow.h b/src/plugins/help/indexwindow.h
index d93a62b258..51ebb06653 100644
--- a/src/plugins/help/indexwindow.h
+++ b/src/plugins/help/indexwindow.h
@@ -31,8 +31,8 @@
**
***************************************************************************/
-#ifndef INDEXWINDOW
-#define INDEXWINDOW
+#ifndef INDEXWINDOW_H
+#define INDEXWINDOW_H
#include <QtCore/QUrl>
#include <QtGui/QWidget>
@@ -79,4 +79,4 @@ private:
QT_END_NAMESPACE
-#endif
+#endif // INDEXWINDOW_H
diff --git a/src/plugins/help/searchwidget.h b/src/plugins/help/searchwidget.h
index 6f6533f387..09b73c2679 100644
--- a/src/plugins/help/searchwidget.h
+++ b/src/plugins/help/searchwidget.h
@@ -85,4 +85,4 @@ private:
} // namespace Internal
} // namespace Help
-#endif // SEARCHWIDGET_H
+#endif // SEARCHWIDGET_H
diff --git a/src/plugins/perforce/annotationhighlighter.cpp b/src/plugins/perforce/annotationhighlighter.cpp
index a23e7b2785..196f8ef715 100644
--- a/src/plugins/perforce/annotationhighlighter.cpp
+++ b/src/plugins/perforce/annotationhighlighter.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "annotationhighlighter.h"
namespace Perforce {
@@ -48,5 +49,5 @@ QString PerforceAnnotationHighlighter::changeNumber(const QString &block) const
return pos > 1 ? block.left(pos) : QString();
}
-}
-}
+} // Internal
+} // Perforce
diff --git a/src/plugins/perforce/annotationhighlighter.h b/src/plugins/perforce/annotationhighlighter.h
index d407a79750..3d6119d402 100644
--- a/src/plugins/perforce/annotationhighlighter.h
+++ b/src/plugins/perforce/annotationhighlighter.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef ANNOTATIONHIGHLIGHTER_H
#define ANNOTATIONHIGHLIGHTER_H
@@ -52,7 +53,7 @@ private:
const QChar m_colon;
};
-} //namespace Perforce
-} //namespace Internal
+} // namespace Perforce
+} // namespace Internal
-#endif
+#endif // ANNOTATIONHIGHLIGHTER_H
diff --git a/src/plugins/perforce/changenumberdialog.cpp b/src/plugins/perforce/changenumberdialog.cpp
index a51b4adbe8..86823969b4 100644
--- a/src/plugins/perforce/changenumberdialog.cpp
+++ b/src/plugins/perforce/changenumberdialog.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include <QtGui/QIntValidator>
#include "changenumberdialog.h"
diff --git a/src/plugins/perforce/changenumberdialog.h b/src/plugins/perforce/changenumberdialog.h
index 8f5b5d0607..c7fdaeee33 100644
--- a/src/plugins/perforce/changenumberdialog.h
+++ b/src/plugins/perforce/changenumberdialog.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef CHANGENUMBERDIALOG_H
#define CHANGENUMBERDIALOG_H
@@ -53,9 +54,7 @@ private:
};
-} //namespace Perforce
-} //namespace Internal
-
-#endif
-
+} // namespace Perforce
+} // namespace Internal
+#endif // CHANGENUMBERDIALOG_H
diff --git a/src/plugins/perforce/p4.h b/src/plugins/perforce/p4.h
index 4f96d34057..5e9eca1f3e 100644
--- a/src/plugins/perforce/p4.h
+++ b/src/plugins/perforce/p4.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef P4_API_INCL
#define P4_API_INCL
diff --git a/src/plugins/perforce/pendingchangesdialog.cpp b/src/plugins/perforce/pendingchangesdialog.cpp
index 25aa1e907e..92b3ec56e5 100644
--- a/src/plugins/perforce/pendingchangesdialog.cpp
+++ b/src/plugins/perforce/pendingchangesdialog.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include <QtCore/QRegExp>
#include "pendingchangesdialog.h"
diff --git a/src/plugins/perforce/pendingchangesdialog.h b/src/plugins/perforce/pendingchangesdialog.h
index b0b96cc799..7e0b0cdddc 100644
--- a/src/plugins/perforce/pendingchangesdialog.h
+++ b/src/plugins/perforce/pendingchangesdialog.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef PENDINGCHANGESDIALOG_H
#define PENDINGCHANGESDIALOG_H
@@ -52,8 +53,8 @@ private:
Ui::PendingChangesDialog m_ui;
};
-} //namespace Perforce
-} //namespace Internal
+} // namespace Perforce
+} // namespace Internal
-#endif
+#endif // PENDINGCHANGESDIALOG_H
diff --git a/src/plugins/perforce/perforceconstants.h b/src/plugins/perforce/perforceconstants.h
index eb6723d9da..87072a01ad 100644
--- a/src/plugins/perforce/perforceconstants.h
+++ b/src/plugins/perforce/perforceconstants.h
@@ -30,24 +30,27 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef PERFORCE_CONSTANTS_H
#define PERFORCE_CONSTANTS_H
namespace Perforce {
- namespace Constants {
- const char * const C_PERFORCEEDITOR = "Perforce Editor";
+namespace Constants {
+
+const char * const C_PERFORCEEDITOR = "Perforce Editor";
+
+const char * const PERFORCEEDITOR_KIND = "Perforce Editor";
+const char * const C_PERFORCESUBMITEDITOR = "Perforce Submit Editor";
+const char * const PERFORCESUBMITEDITOR_KIND = "Perforce Submit Editor";
+const char * const ICON_SUBMIT = ":/trolltech.perforce/images/submit.png";
+const char * const ICON_DIFF = ":/trolltech.perforce/images/diff.png";
+const char * const SUBMIT_CURRENT = "Nokia.Perforce.SubmitCurrentLog";
+const char * const DIFF_SELECTED = "Nokia.Perforce.DiffSelectedFilesInLog";
+const char * const SUBMIT_MIMETYPE = "application/vnd.nokia.text.p4.submit";
- const char * const PERFORCEEDITOR_KIND = "Perforce Editor";
- const char * const C_PERFORCESUBMITEDITOR = "Perforce Submit Editor";
- const char * const PERFORCESUBMITEDITOR_KIND = "Perforce Submit Editor";
- const char * const ICON_SUBMIT = ":/trolltech.perforce/images/submit.png";
- const char * const ICON_DIFF = ":/trolltech.perforce/images/diff.png";
- const char * const SUBMIT_CURRENT = "Nokia.Perforce.SubmitCurrentLog";
- const char * const DIFF_SELECTED = "Nokia.Perforce.DiffSelectedFilesInLog";
- const char * const SUBMIT_MIMETYPE = "application/vnd.nokia.text.p4.submit";
+enum { debug = 0 };
- enum { debug = 0 };
- }
-}
+} // Internal
+} // Perforce
#endif // PERFORCE_CONSTANTS_H
diff --git a/src/plugins/perforce/perforceeditor.cpp b/src/plugins/perforce/perforceeditor.cpp
index 384afd28e5..8eda71843f 100644
--- a/src/plugins/perforce/perforceeditor.cpp
+++ b/src/plugins/perforce/perforceeditor.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "perforceeditor.h"
#include "annotationhighlighter.h"
#include "perforceplugin.h"
diff --git a/src/plugins/perforce/perforceeditor.h b/src/plugins/perforce/perforceeditor.h
index 4e845124ac..de35d213a8 100644
--- a/src/plugins/perforce/perforceeditor.h
+++ b/src/plugins/perforce/perforceeditor.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef PERFORCEEDITOR_H
#define PERFORCEEDITOR_H
diff --git a/src/plugins/perforce/perforceoutputwindow.cpp b/src/plugins/perforce/perforceoutputwindow.cpp
index f6daaa311d..a228e2b586 100644
--- a/src/plugins/perforce/perforceoutputwindow.cpp
+++ b/src/plugins/perforce/perforceoutputwindow.cpp
@@ -30,15 +30,16 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
+#include "perforceoutputwindow.h"
+#include "perforceplugin.h"
+
#include <QtGui/QKeyEvent>
#include <QtGui/QMouseEvent>
#include <QtGui/QMenu>
#include <QtGui/QAction>
#include <QtGui/QListWidget>
-#include "perforceoutputwindow.h"
-#include "perforceplugin.h"
-
using namespace Perforce::Internal;
PerforceOutputWindow::PerforceOutputWindow(PerforcePlugin *p4Plugin)
@@ -74,7 +75,6 @@ bool PerforceOutputWindow::canFocus()
void PerforceOutputWindow::setFocus()
{
-
}
QWidget *PerforceOutputWindow::outputWidget(QWidget *parent)
@@ -95,7 +95,6 @@ void PerforceOutputWindow::clearContents()
void PerforceOutputWindow::visibilityChanged(bool /* b */)
{
-
}
void PerforceOutputWindow::append(const QString &txt, bool doPopup)
diff --git a/src/plugins/perforce/perforceoutputwindow.h b/src/plugins/perforce/perforceoutputwindow.h
index 7264edffb6..b666d078ab 100644
--- a/src/plugins/perforce/perforceoutputwindow.h
+++ b/src/plugins/perforce/perforceoutputwindow.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef PERFORCEOUTPUTWINDOW_H
#define PERFORCEOUTPUTWINDOW_H
@@ -84,4 +85,4 @@ private:
} // namespace Perforce
} // namespace Internal
-#endif
+#endif // PERFORCEOUTPUTWINDOW_H
diff --git a/src/plugins/perforce/perforceplugin.cpp b/src/plugins/perforce/perforceplugin.cpp
index b910b47e32..60ffa06e99 100644
--- a/src/plugins/perforce/perforceplugin.cpp
+++ b/src/plugins/perforce/perforceplugin.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "p4.h"
#include "perforceplugin.h"
#include "perforceoutputwindow.h"
diff --git a/src/plugins/perforce/perforceplugin.h b/src/plugins/perforce/perforceplugin.h
index 9d75bc7f88..4c08856332 100644
--- a/src/plugins/perforce/perforceplugin.h
+++ b/src/plugins/perforce/perforceplugin.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef PERFORCEPLUGIN_H
#define PERFORCEPLUGIN_H
@@ -64,6 +65,7 @@ namespace Core {
namespace Perforce {
namespace Internal {
+
class PerforceOutputWindow;
class SettingsPage;
class PerforceVersionControl;
diff --git a/src/plugins/perforce/perforcesettings.cpp b/src/plugins/perforce/perforcesettings.cpp
index 78eafc7f7e..6384f85e52 100644
--- a/src/plugins/perforce/perforcesettings.cpp
+++ b/src/plugins/perforce/perforcesettings.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "perforcesettings.h"
#include <QtCore/QSettings>
@@ -90,6 +91,5 @@ bool PerforceSettings::equals(const PerforceSettings &s) const
&& defaultEnv == s.defaultEnv;
}
-}
-}
-
+} // Internal
+} // Perforce
diff --git a/src/plugins/perforce/perforcesettings.h b/src/plugins/perforce/perforcesettings.h
index f251c7acef..416620f761 100644
--- a/src/plugins/perforce/perforcesettings.h
+++ b/src/plugins/perforce/perforcesettings.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef PERFOCESETTINGS_H
#define PERFOCESETTINGS_H
@@ -59,7 +60,8 @@ inline bool operator==(const PerforceSettings &p1, const PerforceSettings &p2)
{ return p1.equals(p2); }
inline bool operator!=(const PerforceSettings &p1, const PerforceSettings &p2)
{ return !p1.equals(p2); }
-}
-}
-#endif
+} // Internal
+} // Perforce
+
+#endif // PERFOCESETTINGS_H
diff --git a/src/plugins/perforce/perforcesubmiteditor.cpp b/src/plugins/perforce/perforcesubmiteditor.cpp
index 8917a6028a..4dc41e7fa5 100644
--- a/src/plugins/perforce/perforcesubmiteditor.cpp
+++ b/src/plugins/perforce/perforcesubmiteditor.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "perforcesubmiteditor.h"
#include "perforcesubmiteditorwidget.h"
#include "perforceplugin.h"
@@ -190,5 +191,5 @@ void PerforceSubmitEditor::updateEntries()
m_entries.insert(QLatin1String("Files"), files);
}
-}
-}
+} // Internal
+} // Perforce
diff --git a/src/plugins/perforce/perforcesubmiteditor.h b/src/plugins/perforce/perforcesubmiteditor.h
index 80027a8206..cc308122b0 100644
--- a/src/plugins/perforce/perforcesubmiteditor.h
+++ b/src/plugins/perforce/perforcesubmiteditor.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef PERFORCESUBMITEDITOR_H
#define PERFORCESUBMITEDITOR_H
diff --git a/src/plugins/perforce/perforcesubmiteditorwidget.cpp b/src/plugins/perforce/perforcesubmiteditorwidget.cpp
index a218b4ff8d..c88556e4fe 100644
--- a/src/plugins/perforce/perforcesubmiteditorwidget.cpp
+++ b/src/plugins/perforce/perforcesubmiteditorwidget.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "perforcesubmiteditorwidget.h"
namespace Perforce {
@@ -51,5 +52,6 @@ void PerforceSubmitEditorWidget::setData(const QString &change,
m_submitPanelUi.clientName->setText(client);
m_submitPanelUi.userName->setText(userName);
}
-}
-}
+
+} // Internal
+} // Perforce
diff --git a/src/plugins/perforce/perforcesubmiteditorwidget.h b/src/plugins/perforce/perforcesubmiteditorwidget.h
index bcaa2be0a7..68c00a5896 100644
--- a/src/plugins/perforce/perforcesubmiteditorwidget.h
+++ b/src/plugins/perforce/perforcesubmiteditorwidget.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef PERFORCESUBMITEDITORWIDGET_H
#define PERFORCESUBMITEDITORWIDGET_H
diff --git a/src/plugins/perforce/perforceversioncontrol.cpp b/src/plugins/perforce/perforceversioncontrol.cpp
index 815a8ceed4..a51930c1e6 100644
--- a/src/plugins/perforce/perforceversioncontrol.cpp
+++ b/src/plugins/perforce/perforceversioncontrol.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "perforceversioncontrol.h"
#include "perforceplugin.h"
@@ -65,5 +66,6 @@ QString PerforceVersionControl::findTopLevelForDirectory(const QString &director
{
return m_plugin->findTopLevelForDirectory(directory);
}
-}
-}
+
+} // Internal
+} // Perforce
diff --git a/src/plugins/perforce/perforceversioncontrol.h b/src/plugins/perforce/perforceversioncontrol.h
index cd194967ef..d87a7f15ae 100644
--- a/src/plugins/perforce/perforceversioncontrol.h
+++ b/src/plugins/perforce/perforceversioncontrol.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef PERFORCEVERSIONCONTROL_H
#define PERFORCEVERSIONCONTROL_H
@@ -55,6 +56,7 @@ private:
PerforcePlugin *m_plugin;
};
-}
-}
-#endif
+} // Internal
+} // Perforce
+
+#endif // PERFORCEVERSIONCONTROL_H
diff --git a/src/plugins/perforce/settingspage.cpp b/src/plugins/perforce/settingspage.cpp
index 25290fbc16..5fd7dda486 100644
--- a/src/plugins/perforce/settingspage.cpp
+++ b/src/plugins/perforce/settingspage.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "settingspage.h"
#include "perforcesettings.h"
#include "perforceplugin.h"
diff --git a/src/plugins/perforce/settingspage.h b/src/plugins/perforce/settingspage.h
index 12d5e5f51a..f73a205e11 100644
--- a/src/plugins/perforce/settingspage.h
+++ b/src/plugins/perforce/settingspage.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef SETTINGSPAGE_H
#define SETTINGSPAGE_H
diff --git a/src/plugins/perforce/workbenchclientuser.cpp b/src/plugins/perforce/workbenchclientuser.cpp
index 0ade14d3e8..9d7fe5574c 100644
--- a/src/plugins/perforce/workbenchclientuser.cpp
+++ b/src/plugins/perforce/workbenchclientuser.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "workbenchclientuser.h"
#include "perforceoutputwindow.h"
#include "perforceplugin.h"
diff --git a/src/plugins/perforce/workbenchclientuser.h b/src/plugins/perforce/workbenchclientuser.h
index 244146b4ae..85e3908cc9 100644
--- a/src/plugins/perforce/workbenchclientuser.h
+++ b/src/plugins/perforce/workbenchclientuser.h
@@ -30,16 +30,18 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef WORKBENCHCLIENTUSER_H
#define WORKBENCHCLIENTUSER_H
-#include <QtCore/QObject>
-#include <QtCore/QMap>
-#include <coreplugin/icorelistener.h>
#include "p4.h"
-
#include "ui_promptdialog.h"
+#include <coreplugin/icorelistener.h>
+
+#include <QtCore/QObject>
+#include <QtCore/QMap>
+
QT_BEGIN_NAMESPACE
class QRadioButton;
class QEventLoop;
@@ -108,4 +110,4 @@ private:
} // namespace Perforce
} // namespace Internal
-#endif
+#endif // WORKBENCHCLIENTUSER_H
diff --git a/src/plugins/projectexplorer/abstractprocess.h b/src/plugins/projectexplorer/abstractprocess.h
index 2ab448e43b..12e263ff62 100644
--- a/src/plugins/projectexplorer/abstractprocess.h
+++ b/src/plugins/projectexplorer/abstractprocess.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef ABSTRACTPROCESS_H
#define ABSTRACTPROCESS_H
@@ -68,5 +69,5 @@ private:
} //namespace Internal
} //namespace Qt4ProjectManager
-#endif
+#endif // ABSTRACTPROCESS_H
diff --git a/src/plugins/projectexplorer/abstractprocessstep.cpp b/src/plugins/projectexplorer/abstractprocessstep.cpp
index 4fb4da909d..09bd73fe76 100644
--- a/src/plugins/projectexplorer/abstractprocessstep.cpp
+++ b/src/plugins/projectexplorer/abstractprocessstep.cpp
@@ -30,9 +30,11 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "abstractprocessstep.h"
#include "buildstep.h"
#include "project.h"
+
#include <QtCore/QProcess>
#include <QtCore/QEventLoop>
#include <QtCore/QDebug>
@@ -41,7 +43,7 @@
using namespace ProjectExplorer;
AbstractProcessStep::AbstractProcessStep(Project *pro)
- : BuildStep(pro)
+ : BuildStep(pro)
{
}
diff --git a/src/plugins/projectexplorer/abstractprocessstep.h b/src/plugins/projectexplorer/abstractprocessstep.h
index 217daac1e5..e5d40343bb 100644
--- a/src/plugins/projectexplorer/abstractprocessstep.h
+++ b/src/plugins/projectexplorer/abstractprocessstep.h
@@ -30,11 +30,13 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef ABSTRACTPROCESSSTEP_H
#define ABSTRACTPROCESSSTEP_H
#include "buildstep.h"
#include "environment.h"
+
#include <QtCore/QString>
#include <QtCore/QProcess>
@@ -136,6 +138,6 @@ private:
ProjectExplorer::Environment m_environment;
};
-}
+} // namespace ProjectExplorer
#endif // ABSTRACTPROCESSSTEP_H
diff --git a/src/plugins/projectexplorer/allprojectsfilter.cpp b/src/plugins/projectexplorer/allprojectsfilter.cpp
index 008418b620..059b41e730 100644
--- a/src/plugins/projectexplorer/allprojectsfilter.cpp
+++ b/src/plugins/projectexplorer/allprojectsfilter.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "allprojectsfilter.h"
#include "projectexplorer.h"
#include "session.h"
@@ -42,8 +43,7 @@ using namespace QuickOpen;
using namespace ProjectExplorer;
using namespace ProjectExplorer::Internal;
-AllProjectsFilter::AllProjectsFilter(ProjectExplorerPlugin *pe,
- ICore *core)
+AllProjectsFilter::AllProjectsFilter(ProjectExplorerPlugin *pe, ICore *core)
: BaseFileFilter(core)
{
m_projectExplorer = pe;
diff --git a/src/plugins/projectexplorer/allprojectsfilter.h b/src/plugins/projectexplorer/allprojectsfilter.h
index 99eeee4f85..3315e7b2de 100644
--- a/src/plugins/projectexplorer/allprojectsfilter.h
+++ b/src/plugins/projectexplorer/allprojectsfilter.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef ALLPROJECTSFILTER_H
#define ALLPROJECTSFILTER_H
diff --git a/src/plugins/projectexplorer/allprojectsfind.cpp b/src/plugins/projectexplorer/allprojectsfind.cpp
index 0ff920053e..f892f5ff39 100644
--- a/src/plugins/projectexplorer/allprojectsfind.cpp
+++ b/src/plugins/projectexplorer/allprojectsfind.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "allprojectsfind.h"
#include "projectexplorer.h"
#include "project.h"
diff --git a/src/plugins/projectexplorer/allprojectsfind.h b/src/plugins/projectexplorer/allprojectsfind.h
index 7b0456ac65..77fb2e78eb 100644
--- a/src/plugins/projectexplorer/allprojectsfind.h
+++ b/src/plugins/projectexplorer/allprojectsfind.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef ALLPROJECTSFIND_H
#define ALLPROJECTSFIND_H
diff --git a/src/plugins/projectexplorer/applicationlauncher.h b/src/plugins/projectexplorer/applicationlauncher.h
index 53514bb83f..049b689f44 100644
--- a/src/plugins/projectexplorer/applicationlauncher.h
+++ b/src/plugins/projectexplorer/applicationlauncher.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef APPLICATIONLAUNCHER_H
#define APPLICATIONLAUNCHER_H
diff --git a/src/plugins/projectexplorer/applicationlauncher_win.cpp b/src/plugins/projectexplorer/applicationlauncher_win.cpp
index d3f6fb1d1e..4d0221b087 100644
--- a/src/plugins/projectexplorer/applicationlauncher_win.cpp
+++ b/src/plugins/projectexplorer/applicationlauncher_win.cpp
@@ -30,12 +30,13 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
-#include <projectexplorer/ProjectExplorerInterfaces>
-#include <QDebug>
#include "applicationlauncher.h"
#include "consoleprocess.h"
#include "winguiprocess.h"
+#include <projectexplorer/ProjectExplorerInterfaces>
+
+#include <QDebug>
using namespace ProjectExplorer::Internal;
diff --git a/src/plugins/projectexplorer/applicationlauncher_x11.cpp b/src/plugins/projectexplorer/applicationlauncher_x11.cpp
index ea99ed942d..7042c152d2 100644
--- a/src/plugins/projectexplorer/applicationlauncher_x11.cpp
+++ b/src/plugins/projectexplorer/applicationlauncher_x11.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "applicationlauncher.h"
#include "consoleprocess.h"
diff --git a/src/plugins/projectexplorer/applicationrunconfiguration.cpp b/src/plugins/projectexplorer/applicationrunconfiguration.cpp
index 697a4715d9..ba459d563c 100644
--- a/src/plugins/projectexplorer/applicationrunconfiguration.cpp
+++ b/src/plugins/projectexplorer/applicationrunconfiguration.cpp
@@ -30,9 +30,11 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "applicationrunconfiguration.h"
#include "persistentsettings.h"
#include "environment.h"
+
#include <projectexplorer/projectexplorerconstants.h>
#include <QtGui/QLabel>
diff --git a/src/plugins/projectexplorer/applicationrunconfiguration.h b/src/plugins/projectexplorer/applicationrunconfiguration.h
index 780722fad2..5915f9b7a2 100644
--- a/src/plugins/projectexplorer/applicationrunconfiguration.h
+++ b/src/plugins/projectexplorer/applicationrunconfiguration.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef APPLICATIONRUNCONFIGURATION_H
#define APPLICATIONRUNCONFIGURATION_H
diff --git a/src/plugins/projectexplorer/buildconfiguration.cpp b/src/plugins/projectexplorer/buildconfiguration.cpp
index 5857084513..c9090723a1 100644
--- a/src/plugins/projectexplorer/buildconfiguration.cpp
+++ b/src/plugins/projectexplorer/buildconfiguration.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "buildconfiguration.h"
using namespace ProjectExplorer;
diff --git a/src/plugins/projectexplorer/buildconfiguration.h b/src/plugins/projectexplorer/buildconfiguration.h
index f61b7a84f2..b3ccc8adc9 100644
--- a/src/plugins/projectexplorer/buildconfiguration.h
+++ b/src/plugins/projectexplorer/buildconfiguration.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef BUILDCONFIGURATION_H
#define BUILDCONFIGURATION_H
@@ -59,6 +60,6 @@ private:
QString m_name;
};
-}
+} // namespace ProjectExplorer
-#endif
+#endif // BUILDCONFIGURATION_H
diff --git a/src/plugins/projectexplorer/buildmanager.cpp b/src/plugins/projectexplorer/buildmanager.cpp
index 08c29f865d..98002f8827 100644
--- a/src/plugins/projectexplorer/buildmanager.cpp
+++ b/src/plugins/projectexplorer/buildmanager.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "buildmanager.h"
#include "buildstep.h"
#include "compileoutputwindow.h"
diff --git a/src/plugins/projectexplorer/buildmanager.h b/src/plugins/projectexplorer/buildmanager.h
index 407b26d1a9..2c7a443720 100644
--- a/src/plugins/projectexplorer/buildmanager.h
+++ b/src/plugins/projectexplorer/buildmanager.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef BUILDMANAGER_H
#define BUILDMANAGER_H
diff --git a/src/plugins/projectexplorer/buildparserinterface.cpp b/src/plugins/projectexplorer/buildparserinterface.cpp
index 9e9990c3b4..57bf588ca8 100644
--- a/src/plugins/projectexplorer/buildparserinterface.cpp
+++ b/src/plugins/projectexplorer/buildparserinterface.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "buildparserinterface.h"
using namespace ProjectExplorer;
diff --git a/src/plugins/projectexplorer/buildparserinterface.h b/src/plugins/projectexplorer/buildparserinterface.h
index 969bbc1c95..217ce0bcaf 100644
--- a/src/plugins/projectexplorer/buildparserinterface.h
+++ b/src/plugins/projectexplorer/buildparserinterface.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef BUILDPARSERINTERFACE_H
#define BUILDPARSERINTERFACE_H
diff --git a/src/plugins/projectexplorer/buildprogress.cpp b/src/plugins/projectexplorer/buildprogress.cpp
index d12d92c141..7c893bb9ce 100644
--- a/src/plugins/projectexplorer/buildprogress.cpp
+++ b/src/plugins/projectexplorer/buildprogress.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "buildprogress.h"
#include <coreplugin/stylehelper.h>
diff --git a/src/plugins/projectexplorer/buildprogress.h b/src/plugins/projectexplorer/buildprogress.h
index f51972b09b..12f2ff36da 100644
--- a/src/plugins/projectexplorer/buildprogress.h
+++ b/src/plugins/projectexplorer/buildprogress.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef BUILDPROGRESS_H
#define BUILDPROGRESS_H
diff --git a/src/plugins/projectexplorer/buildsettingspropertiespage.cpp b/src/plugins/projectexplorer/buildsettingspropertiespage.cpp
index ccb8be8e40..a713fdc773 100644
--- a/src/plugins/projectexplorer/buildsettingspropertiespage.cpp
+++ b/src/plugins/projectexplorer/buildsettingspropertiespage.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "buildsettingspropertiespage.h"
#include "buildstep.h"
#include "buildstepspage.h"
diff --git a/src/plugins/projectexplorer/buildsettingspropertiespage.h b/src/plugins/projectexplorer/buildsettingspropertiespage.h
index 57a3a97338..07e398dfc0 100644
--- a/src/plugins/projectexplorer/buildsettingspropertiespage.h
+++ b/src/plugins/projectexplorer/buildsettingspropertiespage.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef BUILDSETTINGSPROPERTIESPAGE_H
#define BUILDSETTINGSPROPERTIESPAGE_H
diff --git a/src/plugins/projectexplorer/buildstep.cpp b/src/plugins/projectexplorer/buildstep.cpp
index 0a96cb9e59..474306dd57 100644
--- a/src/plugins/projectexplorer/buildstep.cpp
+++ b/src/plugins/projectexplorer/buildstep.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "buildstep.h"
#include "buildconfiguration.h"
diff --git a/src/plugins/projectexplorer/buildstep.h b/src/plugins/projectexplorer/buildstep.h
index d531dc08fa..54ac93af0b 100644
--- a/src/plugins/projectexplorer/buildstep.h
+++ b/src/plugins/projectexplorer/buildstep.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef BUILDSTEP_H
#define BUILDSTEP_H
diff --git a/src/plugins/projectexplorer/buildstepspage.cpp b/src/plugins/projectexplorer/buildstepspage.cpp
index 2ac3709a7b..38f804a6ff 100644
--- a/src/plugins/projectexplorer/buildstepspage.cpp
+++ b/src/plugins/projectexplorer/buildstepspage.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "buildstepspage.h"
#include "ui_buildstepspage.h"
#include "project.h"
diff --git a/src/plugins/projectexplorer/buildstepspage.h b/src/plugins/projectexplorer/buildstepspage.h
index 9404d300a4..c612c9ca5f 100644
--- a/src/plugins/projectexplorer/buildstepspage.h
+++ b/src/plugins/projectexplorer/buildstepspage.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef BUILDSTEPSPAGE_H
#define BUILDSTEPSPAGE_H
diff --git a/src/plugins/projectexplorer/compileoutputwindow.cpp b/src/plugins/projectexplorer/compileoutputwindow.cpp
index 4b6929183b..8b50f3e4fa 100644
--- a/src/plugins/projectexplorer/compileoutputwindow.cpp
+++ b/src/plugins/projectexplorer/compileoutputwindow.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "compileoutputwindow.h"
#include "buildmanager.h"
diff --git a/src/plugins/projectexplorer/compileoutputwindow.h b/src/plugins/projectexplorer/compileoutputwindow.h
index b5c4db1d1c..658d73ca04 100644
--- a/src/plugins/projectexplorer/compileoutputwindow.h
+++ b/src/plugins/projectexplorer/compileoutputwindow.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef COMPILEOUTPUTWINDOW_H
#define COMPILEOUTPUTWINDOW_H
diff --git a/src/plugins/projectexplorer/consoleprocess.h b/src/plugins/projectexplorer/consoleprocess.h
index 735d1084da..28e24b92f9 100644
--- a/src/plugins/projectexplorer/consoleprocess.h
+++ b/src/plugins/projectexplorer/consoleprocess.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef CONSOLEPROCESS_H
#define CONSOLEPROCESS_H
diff --git a/src/plugins/projectexplorer/consoleprocess_unix.cpp b/src/plugins/projectexplorer/consoleprocess_unix.cpp
index e15f8bf159..f50db814bc 100644
--- a/src/plugins/projectexplorer/consoleprocess_unix.cpp
+++ b/src/plugins/projectexplorer/consoleprocess_unix.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "consoleprocess.h"
using namespace ProjectExplorer::Internal;
diff --git a/src/plugins/projectexplorer/consoleprocess_win.cpp b/src/plugins/projectexplorer/consoleprocess_win.cpp
index 81ef72a1bf..7e3a5d0a9c 100644
--- a/src/plugins/projectexplorer/consoleprocess_win.cpp
+++ b/src/plugins/projectexplorer/consoleprocess_win.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include <QtCore/QDir>
#include <QtCore/private/qwineventnotifier_p.h>
#include <QtCore/QAbstractEventDispatcher>
diff --git a/src/plugins/projectexplorer/currentprojectfilter.cpp b/src/plugins/projectexplorer/currentprojectfilter.cpp
index 6a901f77d4..084bb4690d 100644
--- a/src/plugins/projectexplorer/currentprojectfilter.cpp
+++ b/src/plugins/projectexplorer/currentprojectfilter.cpp
@@ -31,8 +31,6 @@
**
***************************************************************************/
-
-
#include "currentprojectfilter.h"
#include "projectexplorer.h"
#include "project.h"
@@ -40,7 +38,6 @@
#include <QtCore/QVariant>
#include <QtCore/QTimer>
-
#include <QtCore/QThread>
#include <QtDebug>
diff --git a/src/plugins/projectexplorer/currentprojectfilter.h b/src/plugins/projectexplorer/currentprojectfilter.h
index 4ce2de318d..bacd3a73ea 100644
--- a/src/plugins/projectexplorer/currentprojectfilter.h
+++ b/src/plugins/projectexplorer/currentprojectfilter.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef CURRENTPROJECTFILTER_H
#define CURRENTPROJECTFILTER_H
diff --git a/src/plugins/projectexplorer/currentprojectfind.cpp b/src/plugins/projectexplorer/currentprojectfind.cpp
index 1f049c5864..58300f4ca8 100644
--- a/src/plugins/projectexplorer/currentprojectfind.cpp
+++ b/src/plugins/projectexplorer/currentprojectfind.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "currentprojectfind.h"
#include "projectexplorer.h"
#include "project.h"
diff --git a/src/plugins/projectexplorer/currentprojectfind.h b/src/plugins/projectexplorer/currentprojectfind.h
index a5d22c7d61..37577a2a95 100644
--- a/src/plugins/projectexplorer/currentprojectfind.h
+++ b/src/plugins/projectexplorer/currentprojectfind.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef CURRENTPROJECTFIND_H
#define CURRENTPROJECTFIND_H
diff --git a/src/plugins/projectexplorer/customexecutablerunconfiguration.cpp b/src/plugins/projectexplorer/customexecutablerunconfiguration.cpp
index 44358053dd..c52b86f488 100644
--- a/src/plugins/projectexplorer/customexecutablerunconfiguration.cpp
+++ b/src/plugins/projectexplorer/customexecutablerunconfiguration.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "customexecutablerunconfiguration.h"
#include "environment.h"
#include "project.h"
diff --git a/src/plugins/projectexplorer/customexecutablerunconfiguration.h b/src/plugins/projectexplorer/customexecutablerunconfiguration.h
index 18b0368c7e..5d15009c02 100644
--- a/src/plugins/projectexplorer/customexecutablerunconfiguration.h
+++ b/src/plugins/projectexplorer/customexecutablerunconfiguration.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef CUSTOMEXECUTABLERUNCONFIGURATION_H
#define CUSTOMEXECUTABLERUNCONFIGURATION_H
diff --git a/src/plugins/projectexplorer/dependenciesdialog.cpp b/src/plugins/projectexplorer/dependenciesdialog.cpp
index c1fd2106b6..0fc776dcb1 100644
--- a/src/plugins/projectexplorer/dependenciesdialog.cpp
+++ b/src/plugins/projectexplorer/dependenciesdialog.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "dependenciesdialog.h"
#include "project.h"
#include "session.h"
diff --git a/src/plugins/projectexplorer/dependenciesdialog.h b/src/plugins/projectexplorer/dependenciesdialog.h
index f77607e1fa..bcb635dada 100644
--- a/src/plugins/projectexplorer/dependenciesdialog.h
+++ b/src/plugins/projectexplorer/dependenciesdialog.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef DEPENDENCIESDIALOG_H
#define DEPENDENCIESDIALOG_H
diff --git a/src/plugins/projectexplorer/directoryproject.cpp b/src/plugins/projectexplorer/directoryproject.cpp
index 56180729b9..7134763854 100644
--- a/src/plugins/projectexplorer/directoryproject.cpp
+++ b/src/plugins/projectexplorer/directoryproject.cpp
@@ -30,5 +30,6 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "directoryproject.h"
diff --git a/src/plugins/projectexplorer/editorconfiguration.cpp b/src/plugins/projectexplorer/editorconfiguration.cpp
index 947745dcdb..d2a016ef2b 100644
--- a/src/plugins/projectexplorer/editorconfiguration.cpp
+++ b/src/plugins/projectexplorer/editorconfiguration.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "editorconfiguration.h"
#include <QtCore/QTextCodec>
diff --git a/src/plugins/projectexplorer/editorconfiguration.h b/src/plugins/projectexplorer/editorconfiguration.h
index 9a5d133175..a968008a57 100644
--- a/src/plugins/projectexplorer/editorconfiguration.h
+++ b/src/plugins/projectexplorer/editorconfiguration.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef EDITORCONFIGURATION_H
#define EDITORCONFIGURATION_H
@@ -54,6 +55,6 @@ private:
QTextCodec *m_defaultTextCodec;
};
-}
+} // ProjectExplorer
-#endif
+#endif // EDITORCONFIGURATION_H
diff --git a/src/plugins/projectexplorer/editorsettingspropertiespage.cpp b/src/plugins/projectexplorer/editorsettingspropertiespage.cpp
index c8dd246f14..e969079aca 100644
--- a/src/plugins/projectexplorer/editorsettingspropertiespage.cpp
+++ b/src/plugins/projectexplorer/editorsettingspropertiespage.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "editorsettingspropertiespage.h"
#include "editorconfiguration.h"
diff --git a/src/plugins/projectexplorer/editorsettingspropertiespage.h b/src/plugins/projectexplorer/editorsettingspropertiespage.h
index 9cb4a762a5..df9936fe0e 100644
--- a/src/plugins/projectexplorer/editorsettingspropertiespage.h
+++ b/src/plugins/projectexplorer/editorsettingspropertiespage.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef EDITORSETTINGSPROPERTIESPAGE_H
#define EDITORSETTINGSPROPERTIESPAGE_H
diff --git a/src/plugins/projectexplorer/environment.cpp b/src/plugins/projectexplorer/environment.cpp
index c2de8e6dfe..a8470d3df5 100644
--- a/src/plugins/projectexplorer/environment.cpp
+++ b/src/plugins/projectexplorer/environment.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "environment.h"
#include <QtCore/QProcess>
diff --git a/src/plugins/projectexplorer/environment.h b/src/plugins/projectexplorer/environment.h
index e0de71b031..3f7e68ea72 100644
--- a/src/plugins/projectexplorer/environment.h
+++ b/src/plugins/projectexplorer/environment.h
@@ -30,8 +30,9 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
-#ifndef ENVIRONMENT
-#define ENVIRONMENT
+
+#ifndef ENVIRONMENT_H
+#define ENVIRONMENT_H
#include "projectexplorer_export.h"
@@ -96,6 +97,6 @@ private:
QMap<QString, QString> m_values;
};
-}
+} // namespace ProjectExplorer
-#endif
+#endif // ENVIRONMENT_H
diff --git a/src/plugins/projectexplorer/environmenteditmodel.cpp b/src/plugins/projectexplorer/environmenteditmodel.cpp
index 2c123056a3..2405d86998 100644
--- a/src/plugins/projectexplorer/environmenteditmodel.cpp
+++ b/src/plugins/projectexplorer/environmenteditmodel.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "environmenteditmodel.h"
using namespace ProjectExplorer;
diff --git a/src/plugins/projectexplorer/environmenteditmodel.h b/src/plugins/projectexplorer/environmenteditmodel.h
index 5dd158b25d..4f20652027 100644
--- a/src/plugins/projectexplorer/environmenteditmodel.h
+++ b/src/plugins/projectexplorer/environmenteditmodel.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef ENVIRONMENTEDITMODEL_H
#define ENVIRONMENTEDITMODEL_H
@@ -40,8 +41,7 @@
#include <QtCore/QDebug>
#include <QtGui/QFont>
-namespace ProjectExplorer
-{
+namespace ProjectExplorer {
class PROJECTEXPLORER_EXPORT EnvironmentModel : public QAbstractItemModel
{
@@ -88,5 +88,6 @@ private:
bool m_mergedEnvironments;
};
-}
+} // namespace ProjectExplorer
+
#endif // ENVIRONMENTEDITMODEL_H
diff --git a/src/plugins/projectexplorer/foldernavigationwidget.cpp b/src/plugins/projectexplorer/foldernavigationwidget.cpp
index 7bd31a2157..3a59aca76c 100644
--- a/src/plugins/projectexplorer/foldernavigationwidget.cpp
+++ b/src/plugins/projectexplorer/foldernavigationwidget.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "foldernavigationwidget.h"
#include "projectexplorer.h"
#include "projectexplorerconstants.h"
@@ -52,18 +53,21 @@ bool debug = false;
}
namespace ProjectExplorer {
- namespace Internal {
- class FirstRowFilter : public QSortFilterProxyModel {
- Q_OBJECT
- public:
- FirstRowFilter(QObject *parent = 0) : QSortFilterProxyModel(parent) {}
- protected:
- bool filterAcceptsRow (int source_row, const QModelIndex & ) const {
- return source_row != 0;
- }
- };
+namespace Internal {
+
+class FirstRowFilter : public QSortFilterProxyModel
+{
+ Q_OBJECT
+public:
+ FirstRowFilter(QObject *parent = 0) : QSortFilterProxyModel(parent) {}
+protected:
+ bool filterAcceptsRow (int source_row, const QModelIndex & ) const {
+ return source_row != 0;
}
-}
+};
+
+} // namespace Internal
+} // namespace ProjectExplorer
/*!
/class FolderNavigationWidget
diff --git a/src/plugins/projectexplorer/foldernavigationwidget.h b/src/plugins/projectexplorer/foldernavigationwidget.h
index 37ba42fe3a..82e4493eec 100644
--- a/src/plugins/projectexplorer/foldernavigationwidget.h
+++ b/src/plugins/projectexplorer/foldernavigationwidget.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef FOLDERNAVIGATIONWIDGET_H
#define FOLDERNAVIGATIONWIDGET_H
diff --git a/src/plugins/projectexplorer/iprojectmanager.h b/src/plugins/projectexplorer/iprojectmanager.h
index 7238a5668f..42d439e597 100644
--- a/src/plugins/projectexplorer/iprojectmanager.h
+++ b/src/plugins/projectexplorer/iprojectmanager.h
@@ -30,10 +30,12 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef PROJECTMANAGERINTERFACE_H
#define PROJECTMANAGERINTERFACE_H
#include "projectexplorer_export.h"
+
#include <QtCore/QObject>
namespace ProjectExplorer {
diff --git a/src/plugins/projectexplorer/iprojectproperties.h b/src/plugins/projectexplorer/iprojectproperties.h
index dfcc5fe52e..f3f13927bc 100644
--- a/src/plugins/projectexplorer/iprojectproperties.h
+++ b/src/plugins/projectexplorer/iprojectproperties.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef IPROJECTPROPERTIES_H
#define IPROJECTPROPERTIES_H
diff --git a/src/plugins/projectexplorer/metatypedeclarations.h b/src/plugins/projectexplorer/metatypedeclarations.h
index 3ab613361e..e7c3576ffe 100644
--- a/src/plugins/projectexplorer/metatypedeclarations.h
+++ b/src/plugins/projectexplorer/metatypedeclarations.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef PROJECTEXPLORERMETATYPEDECLARATIONS_H
#define PROJECTEXPLORERMETATYPEDECLARATIONS_H
@@ -63,5 +64,6 @@ Q_DECLARE_METATYPE(ProjectExplorer::IApplicationOutput*)
Q_DECLARE_METATYPE(ProjectExplorer::Internal::CommandQObject*)
Q_DECLARE_METATYPE(QList<ProjectExplorer::Internal::CommandQObject*>)
Q_DECLARE_METATYPE(ProjectExplorer::BuildParserInterface*)
+
Q_DECLARE_METATYPE(ProjectExplorer::GlobalConfigManagerInterface*)
#endif // PROJECTEXPLORERMETATYPEDECLARATIONS_H
diff --git a/src/plugins/projectexplorer/nodesvisitor.cpp b/src/plugins/projectexplorer/nodesvisitor.cpp
index 91f18cc8e9..c2574f36f9 100644
--- a/src/plugins/projectexplorer/nodesvisitor.cpp
+++ b/src/plugins/projectexplorer/nodesvisitor.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "nodesvisitor.h"
#include "projectnodes.h"
diff --git a/src/plugins/projectexplorer/nodesvisitor.h b/src/plugins/projectexplorer/nodesvisitor.h
index 896d0d527b..86c3a77270 100644
--- a/src/plugins/projectexplorer/nodesvisitor.h
+++ b/src/plugins/projectexplorer/nodesvisitor.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef NODESVISITOR_H
#define NODESVISITOR_H
@@ -82,6 +83,6 @@ private:
QStringList m_filePaths;
};
-}
+} // namespace ProjectExplorer
#endif // NODESVISITOR_H
diff --git a/src/plugins/projectexplorer/outputwindow.cpp b/src/plugins/projectexplorer/outputwindow.cpp
index b92ae960e4..a2e0e206ae 100644
--- a/src/plugins/projectexplorer/outputwindow.cpp
+++ b/src/plugins/projectexplorer/outputwindow.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "outputwindow.h"
#include "projectexplorerconstants.h"
#include "runconfiguration.h"
diff --git a/src/plugins/projectexplorer/outputwindow.h b/src/plugins/projectexplorer/outputwindow.h
index c679a454b1..69bd4ef972 100644
--- a/src/plugins/projectexplorer/outputwindow.h
+++ b/src/plugins/projectexplorer/outputwindow.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef OUTPUTWINDOW_H
#define OUTPUTWINDOW_H
@@ -192,7 +193,7 @@ protected:
void contextMenuEvent(QContextMenuEvent * e);
};
#endif // 0
-} //namespace Internal
-} //namespace ProjectExplorer
+} // namespace Internal
+} // namespace ProjectExplorer
-#endif
+#endif // OUTPUTWINDOW_H
diff --git a/src/plugins/projectexplorer/persistentsettings.cpp b/src/plugins/projectexplorer/persistentsettings.cpp
index 19e6ad13ac..38253f3ae0 100644
--- a/src/plugins/projectexplorer/persistentsettings.cpp
+++ b/src/plugins/projectexplorer/persistentsettings.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "persistentsettings.h"
#include <QtCore/QDebug>
diff --git a/src/plugins/projectexplorer/persistentsettings.h b/src/plugins/projectexplorer/persistentsettings.h
index ae0fea0c61..a1bb19b833 100644
--- a/src/plugins/projectexplorer/persistentsettings.h
+++ b/src/plugins/projectexplorer/persistentsettings.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef PERSISTENTSETTINGS_H
#define PERSISTENTSETTINGS_H
@@ -70,6 +71,6 @@ private:
QMap<QString, QVariant> m_valueMap;
};
-} //namespace ProjectExplorer
+} // namespace ProjectExplorer
-#endif //PERSISTENTSETTINGS_H
+#endif // PERSISTENTSETTINGS_H
diff --git a/src/plugins/projectexplorer/pluginfilefactory.cpp b/src/plugins/projectexplorer/pluginfilefactory.cpp
index f66133bbaf..a3d712ff5e 100644
--- a/src/plugins/projectexplorer/pluginfilefactory.cpp
+++ b/src/plugins/projectexplorer/pluginfilefactory.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "pluginfilefactory.h"
#include "projectexplorer.h"
#include "projectexplorerconstants.h"
diff --git a/src/plugins/projectexplorer/pluginfilefactory.h b/src/plugins/projectexplorer/pluginfilefactory.h
index 294f012100..5d3dc6b1f1 100644
--- a/src/plugins/projectexplorer/pluginfilefactory.h
+++ b/src/plugins/projectexplorer/pluginfilefactory.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef PLUGINFILEFACTORY_H
#define PLUGINFILEFACTORY_H
@@ -69,8 +70,7 @@ private:
ProjectExplorer::IProjectManager *m_manager;
};
-
-} //namespace Internal
-} //namespace ProjectExplorer
+} // namespace Internal
+} // namespace ProjectExplorer
#endif // PLUGINFILEFACTORY
diff --git a/src/plugins/projectexplorer/processstep.cpp b/src/plugins/projectexplorer/processstep.cpp
index 6f3c34c939..4a24efa706 100644
--- a/src/plugins/projectexplorer/processstep.cpp
+++ b/src/plugins/projectexplorer/processstep.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "processstep.h"
#include "buildstep.h"
#include "project.h"
diff --git a/src/plugins/projectexplorer/processstep.h b/src/plugins/projectexplorer/processstep.h
index 64772d3ed5..0cee08d071 100644
--- a/src/plugins/projectexplorer/processstep.h
+++ b/src/plugins/projectexplorer/processstep.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef PROCESSSTEP_H
#define PROCESSSTEP_H
diff --git a/src/plugins/projectexplorer/project.cpp b/src/plugins/projectexplorer/project.cpp
index 44a6d9435f..8c74fe6e56 100644
--- a/src/plugins/projectexplorer/project.cpp
+++ b/src/plugins/projectexplorer/project.cpp
@@ -30,8 +30,10 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
-#include "buildstep.h"
+
#include "project.h"
+
+#include "buildstep.h"
#include "projectexplorer.h"
#include "runconfiguration.h"
#include "editorconfiguration.h"
diff --git a/src/plugins/projectexplorer/project.h b/src/plugins/projectexplorer/project.h
index f43be29457..0d05234bd8 100644
--- a/src/plugins/projectexplorer/project.h
+++ b/src/plugins/projectexplorer/project.h
@@ -30,6 +30,8 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
+
#ifndef PROJECT_H
#define PROJECT_H
@@ -177,6 +179,6 @@ private:
EditorConfiguration *m_editorConfiguration;
};
-} //namespace ProjectExplorer
+} // namespace ProjectExplorer
-#endif //PROJECTINTERFACE_H
+#endif // PROJECTINTERFACE_H
diff --git a/src/plugins/projectexplorer/projectexplorer.cpp b/src/plugins/projectexplorer/projectexplorer.cpp
index 384e4392e3..e04553763a 100644
--- a/src/plugins/projectexplorer/projectexplorer.cpp
+++ b/src/plugins/projectexplorer/projectexplorer.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "applicationrunconfiguration.h"
#include "allprojectsfilter.h"
#include "allprojectsfind.h"
diff --git a/src/plugins/projectexplorer/projectexplorer.h b/src/plugins/projectexplorer/projectexplorer.h
index f00260096d..039def1305 100644
--- a/src/plugins/projectexplorer/projectexplorer.h
+++ b/src/plugins/projectexplorer/projectexplorer.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef PROJECTEXPLORER_H
#define PROJECTEXPLORER_H
@@ -56,9 +57,9 @@ class IContext;
class ICore;
class IMode;
class IFileFactory;
- namespace Internal {
- class WelcomeMode;
- }
+namespace Internal {
+ class WelcomeMode;
+}
}
namespace ProjectExplorer {
diff --git a/src/plugins/projectexplorer/projectexplorer_export.h b/src/plugins/projectexplorer/projectexplorer_export.h
index b7c6dbb186..43475aeb4f 100644
--- a/src/plugins/projectexplorer/projectexplorer_export.h
+++ b/src/plugins/projectexplorer/projectexplorer_export.h
@@ -30,18 +30,6 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
-/****************************************************************************
-**
-** Copyright (C) 1992-$THISYEAR$ Trolltech AS. All rights reserved.
-**
-** This file is part of the $MODULE$ of the Qt Toolkit.
-**
-** $LICENSE$
-**
-** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
-** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
-**
-****************************************************************************/
#ifndef PROJECTEXPLORER_EXPORT_H
#define PROJECTEXPLORER_EXPORT_H
diff --git a/src/plugins/projectexplorer/projectexplorerconstants.h b/src/plugins/projectexplorer/projectexplorerconstants.h
index e778efd682..11a3cf5c27 100644
--- a/src/plugins/projectexplorer/projectexplorerconstants.h
+++ b/src/plugins/projectexplorer/projectexplorerconstants.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef PROJECTEXPLORERCONSTANTS_H
#define PROJECTEXPLORERCONSTANTS_H
@@ -174,7 +175,7 @@ const char * const CPP_HEADER_MIMETYPE = "text/x-c++hdr";
const char * const FORM_MIMETYPE = "application/x-designer";
const char * const RESOURCE_MIMETYPE = "application/vnd.nokia.xml.qt.resource";
-}
-}
+} // namespace Constants
+} // namespace ProjectExplorer
-#endif //PROJECTEXPLORERCONSTANTS_H
+#endif // PROJECTEXPLORERCONSTANTS_H
diff --git a/src/plugins/projectexplorer/projectfilewizardextension.cpp b/src/plugins/projectexplorer/projectfilewizardextension.cpp
index d28aff1d63..2cd220ef58 100644
--- a/src/plugins/projectexplorer/projectfilewizardextension.cpp
+++ b/src/plugins/projectexplorer/projectfilewizardextension.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "projectfilewizardextension.h"
#include "projectexplorer.h"
#include "projectnodes.h"
@@ -194,6 +195,5 @@ bool ProjectFileWizardExtension::process(const QList<Core::GeneratedFile> &files
return true;
}
-
-}
-}
+} // namespace Internal
+} // namespace ProjectExplorer
diff --git a/src/plugins/projectexplorer/projectfilewizardextension.h b/src/plugins/projectexplorer/projectfilewizardextension.h
index eb5051a9b7..8a59127256 100644
--- a/src/plugins/projectexplorer/projectfilewizardextension.h
+++ b/src/plugins/projectexplorer/projectfilewizardextension.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef PROJECTFILEWIZARDEXTENSION2_H
#define PROJECTFILEWIZARDEXTENSION2_H
diff --git a/src/plugins/projectexplorer/projectmodels.cpp b/src/plugins/projectexplorer/projectmodels.cpp
index f3b078c94b..3e04069408 100644
--- a/src/plugins/projectexplorer/projectmodels.cpp
+++ b/src/plugins/projectexplorer/projectmodels.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "project.h"
#include "projectmodels.h"
#include "projectexplorerconstants.h"
@@ -49,89 +50,92 @@ using namespace ProjectExplorer::Internal;
using Core::FileIconProvider;
namespace {
- // sorting helper function
- bool sortNodes(Node *n1, Node *n2) {
- // Ordering is: project files, project, folder, file
-
- const NodeType n1Type = n1->nodeType();
- const NodeType n2Type = n2->nodeType();
-
- // project files
- FileNode *file1 = qobject_cast<FileNode*>(n1);
- FileNode *file2 = qobject_cast<FileNode*>(n2);
- if (file1 && file1->fileType() == ProjectFileType) {
- if (file2 && file2->fileType() == ProjectFileType) {
- const QString fileName1 = QFileInfo(file1->path()).fileName();
- const QString fileName2 = QFileInfo(file2->path()).fileName();
-
- if (fileName1 != fileName2)
- return fileName1 < fileName2;
- else
- return file1 < file2;
- } else {
- return true; // project file is before everything else
- }
- } else {
- if (file2 && file2->fileType() == ProjectFileType) {
- return false;
- }
- }
- // projects
- if (n1Type == ProjectNodeType) {
- if (n2Type == ProjectNodeType) {
- ProjectNode *project1 = static_cast<ProjectNode*>(n1);
- ProjectNode *project2 = static_cast<ProjectNode*>(n2);
+// sorting helper function
+bool sortNodes(Node *n1, Node *n2)
+{
+ // Ordering is: project files, project, folder, file
+
+ const NodeType n1Type = n1->nodeType();
+ const NodeType n2Type = n2->nodeType();
- if (project1->name() != project2->name())
- return project1->name() < project2->name(); // sort by name
- else
- return project1 < project2; // sort by pointer value
- } else {
- return true; // project is before folder & file
- }
+ // project files
+ FileNode *file1 = qobject_cast<FileNode*>(n1);
+ FileNode *file2 = qobject_cast<FileNode*>(n2);
+ if (file1 && file1->fileType() == ProjectFileType) {
+ if (file2 && file2->fileType() == ProjectFileType) {
+ const QString fileName1 = QFileInfo(file1->path()).fileName();
+ const QString fileName2 = QFileInfo(file2->path()).fileName();
+
+ if (fileName1 != fileName2)
+ return fileName1 < fileName2;
+ else
+ return file1 < file2;
+ } else {
+ return true; // project file is before everything else
}
- if (n2Type == ProjectNodeType)
+ } else {
+ if (file2 && file2->fileType() == ProjectFileType) {
return false;
+ }
+ }
- if (n1Type == FolderNodeType) {
- if (n2Type == FolderNodeType) {
- FolderNode *folder1 = static_cast<FolderNode*>(n1);
- FolderNode *folder2 = static_cast<FolderNode*>(n2);
+ // projects
+ if (n1Type == ProjectNodeType) {
+ if (n2Type == ProjectNodeType) {
+ ProjectNode *project1 = static_cast<ProjectNode*>(n1);
+ ProjectNode *project2 = static_cast<ProjectNode*>(n2);
- if (folder1->name() != folder2->name())
- return folder1->name() < folder2->name();
- else
- return folder1 < folder2;
- } else {
- return true; // folder is before file
- }
+ if (project1->name() != project2->name())
+ return project1->name() < project2->name(); // sort by name
+ else
+ return project1 < project2; // sort by pointer value
+ } else {
+ return true; // project is before folder & file
+ }
+ }
+ if (n2Type == ProjectNodeType)
+ return false;
+
+ if (n1Type == FolderNodeType) {
+ if (n2Type == FolderNodeType) {
+ FolderNode *folder1 = static_cast<FolderNode*>(n1);
+ FolderNode *folder2 = static_cast<FolderNode*>(n2);
+
+ if (folder1->name() != folder2->name())
+ return folder1->name() < folder2->name();
+ else
+ return folder1 < folder2;
+ } else {
+ return true; // folder is before file
}
- if (n2Type == FolderNodeType)
- return false;
+ }
+ if (n2Type == FolderNodeType)
+ return false;
- // must be file nodes
- {
- const QString filePath1 = n1->path();
- const QString filePath2 = n2->path();
+ // must be file nodes
+ {
+ const QString filePath1 = n1->path();
+ const QString filePath2 = n2->path();
- const QString fileName1 = QFileInfo(filePath1).fileName();
- const QString fileName2 = QFileInfo(filePath2).fileName();
+ const QString fileName1 = QFileInfo(filePath1).fileName();
+ const QString fileName2 = QFileInfo(filePath2).fileName();
- if (fileName1 != fileName2) {
- return fileName1 < fileName2; // sort by file names
+ if (fileName1 != fileName2) {
+ return fileName1 < fileName2; // sort by file names
+ } else {
+ if (filePath1 != filePath2) {
+ return filePath1 < filePath2; // sort by path names
} else {
- if (filePath1 != filePath2) {
- return filePath1 < filePath2; // sort by path names
- } else {
- return n1 < n2; // sort by pointer value
- }
+ return n1 < n2; // sort by pointer value
}
}
- return false;
}
+ return false;
}
+} // namespace anon
+
/*!
\class DetailedModel
diff --git a/src/plugins/projectexplorer/projectmodels.h b/src/plugins/projectexplorer/projectmodels.h
index 2c9fc5f54d..cb7376f932 100644
--- a/src/plugins/projectexplorer/projectmodels.h
+++ b/src/plugins/projectexplorer/projectmodels.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef PROJECTMODELS_H
#define PROJECTMODELS_H
diff --git a/src/plugins/projectexplorer/projectnodes.cpp b/src/plugins/projectexplorer/projectnodes.cpp
index 5a51bf6a1f..bf6174a4a3 100644
--- a/src/plugins/projectexplorer/projectnodes.cpp
+++ b/src/plugins/projectexplorer/projectnodes.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "nodesvisitor.h"
#include "projectnodes.h"
#include "projectexplorerconstants.h"
diff --git a/src/plugins/projectexplorer/projectnodes.h b/src/plugins/projectexplorer/projectnodes.h
index 1147012177..14297df8be 100644
--- a/src/plugins/projectexplorer/projectnodes.h
+++ b/src/plugins/projectexplorer/projectnodes.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef PROJECTNODES_H
#define PROJECTNODES_H
diff --git a/src/plugins/projectexplorer/projecttreewidget.cpp b/src/plugins/projectexplorer/projecttreewidget.cpp
index cb960956ed..50882e67d9 100644
--- a/src/plugins/projectexplorer/projecttreewidget.cpp
+++ b/src/plugins/projectexplorer/projecttreewidget.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "projecttreewidget.h"
#include "projectexplorer.h"
#include "projectexplorerconstants.h"
diff --git a/src/plugins/projectexplorer/projecttreewidget.h b/src/plugins/projectexplorer/projecttreewidget.h
index 51847ce09a..dcb26c2d9a 100644
--- a/src/plugins/projectexplorer/projecttreewidget.h
+++ b/src/plugins/projectexplorer/projecttreewidget.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef PROJECTTREEWIDGET_H
#define PROJECTTREEWIDGET_H
diff --git a/src/plugins/projectexplorer/projectwindow.cpp b/src/plugins/projectexplorer/projectwindow.cpp
index e910e88839..38aa7f958a 100644
--- a/src/plugins/projectexplorer/projectwindow.cpp
+++ b/src/plugins/projectexplorer/projectwindow.cpp
@@ -30,8 +30,10 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
-#include "project.h"
+
#include "projectwindow.h"
+
+#include "project.h"
#include "projectexplorer.h"
#include "projectexplorerconstants.h"
#include "iprojectproperties.h"
diff --git a/src/plugins/projectexplorer/projectwindow.h b/src/plugins/projectexplorer/projectwindow.h
index 498ca4f03f..e5e2dc4a81 100644
--- a/src/plugins/projectexplorer/projectwindow.h
+++ b/src/plugins/projectexplorer/projectwindow.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef PROJECTWINDOW_H
#define PROJECTWINDOW_H
diff --git a/src/plugins/projectexplorer/projectwizardpage.cpp b/src/plugins/projectexplorer/projectwizardpage.cpp
index 704abcfe33..8a2873c336 100644
--- a/src/plugins/projectexplorer/projectwizardpage.cpp
+++ b/src/plugins/projectexplorer/projectwizardpage.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "projectwizardpage.h"
#include "ui_projectwizardpage.h"
diff --git a/src/plugins/projectexplorer/projectwizardpage.h b/src/plugins/projectexplorer/projectwizardpage.h
index 7232e45976..2031923d37 100644
--- a/src/plugins/projectexplorer/projectwizardpage.h
+++ b/src/plugins/projectexplorer/projectwizardpage.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef PROJECTWIZARDPAGE_H
#define PROJECTWIZARDPAGE_H
@@ -77,7 +78,7 @@ private:
Ui::WizardPage *m_ui;
};
-}
-}
+} // namespace Internal
+} // namespace ProjectExplorer
#endif // PROJECTWIZARDPAGE_H
diff --git a/src/plugins/projectexplorer/removefiledialog.cpp b/src/plugins/projectexplorer/removefiledialog.cpp
index 7230c096e6..3d8f11345a 100644
--- a/src/plugins/projectexplorer/removefiledialog.cpp
+++ b/src/plugins/projectexplorer/removefiledialog.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "removefiledialog.h"
#include "ui_removefiledialog.h"
diff --git a/src/plugins/projectexplorer/removefiledialog.h b/src/plugins/projectexplorer/removefiledialog.h
index 2a9ec5fe8b..7c43774d8b 100644
--- a/src/plugins/projectexplorer/removefiledialog.h
+++ b/src/plugins/projectexplorer/removefiledialog.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef REMOVEFILEDIALOG_H
#define REMOVEFILEDIALOG_H
@@ -42,7 +43,8 @@ namespace Ui {
class RemoveFileDialog;
}
-class RemoveFileDialog : public QDialog {
+class RemoveFileDialog : public QDialog
+{
Q_OBJECT
Q_DISABLE_COPY(RemoveFileDialog)
public:
diff --git a/src/plugins/projectexplorer/runconfiguration.cpp b/src/plugins/projectexplorer/runconfiguration.cpp
index f7fcfb2912..8c83e2c407 100644
--- a/src/plugins/projectexplorer/runconfiguration.cpp
+++ b/src/plugins/projectexplorer/runconfiguration.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "runconfiguration.h"
#include "project.h"
diff --git a/src/plugins/projectexplorer/runconfiguration.h b/src/plugins/projectexplorer/runconfiguration.h
index e7e3d3c20f..8d2e7b45d6 100644
--- a/src/plugins/projectexplorer/runconfiguration.h
+++ b/src/plugins/projectexplorer/runconfiguration.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef RUNCONFIGURATION_H
#define RUNCONFIGURATION_H
diff --git a/src/plugins/projectexplorer/runsettingspropertiespage.cpp b/src/plugins/projectexplorer/runsettingspropertiespage.cpp
index cf7e86efda..abbfd8c1d1 100644
--- a/src/plugins/projectexplorer/runsettingspropertiespage.cpp
+++ b/src/plugins/projectexplorer/runsettingspropertiespage.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "runsettingspropertiespage.h"
#include "runconfiguration.h"
diff --git a/src/plugins/projectexplorer/runsettingspropertiespage.h b/src/plugins/projectexplorer/runsettingspropertiespage.h
index 1cb57fb01a..c3882eaefb 100644
--- a/src/plugins/projectexplorer/runsettingspropertiespage.h
+++ b/src/plugins/projectexplorer/runsettingspropertiespage.h
@@ -30,16 +30,13 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef RUNSETTINGSPROPERTIESPAGE_H
#define RUNSETTINGSPROPERTIESPAGE_H
#include "iprojectproperties.h"
-#include <QtGui/QWidget>
-
-QT_BEGIN_NAMESPACE
-
-QT_END_NAMESPACE
+#include <QtGui/QWidget>
namespace ProjectExplorer {
namespace Internal {
diff --git a/src/plugins/projectexplorer/scriptwrappers.cpp b/src/plugins/projectexplorer/scriptwrappers.cpp
index 4939bd66d3..d026636017 100644
--- a/src/plugins/projectexplorer/scriptwrappers.cpp
+++ b/src/plugins/projectexplorer/scriptwrappers.cpp
@@ -30,5 +30,6 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "scriptwrappers.h"
diff --git a/src/plugins/projectexplorer/scriptwrappers.h b/src/plugins/projectexplorer/scriptwrappers.h
index 71747269da..2c8f3b42c1 100644
--- a/src/plugins/projectexplorer/scriptwrappers.h
+++ b/src/plugins/projectexplorer/scriptwrappers.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef PROJECTEXPLORER_SCRIPT_WRAPPER_H
#define PROJECTEXPLORER_SCRIPT_WRAPPER_H
diff --git a/src/plugins/projectexplorer/session.cpp b/src/plugins/projectexplorer/session.cpp
index eaf52f44b1..61ca7df05a 100644
--- a/src/plugins/projectexplorer/session.cpp
+++ b/src/plugins/projectexplorer/session.cpp
@@ -30,12 +30,14 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
+#include "session.h"
+
#include "dependenciesdialog.h"
#include "project.h"
#include "projectexplorer.h"
#include "projectexplorerconstants.h"
#include "nodesvisitor.h"
-#include "session.h"
#include "editorconfiguration.h"
#include <coreplugin/icore.h>
@@ -49,7 +51,6 @@
#include <texteditor/itexteditor.h>
-
#include <QtCore/QDir>
#include <QtCore/QDebug>
#include <QtCore/QFileInfo>
diff --git a/src/plugins/projectexplorer/session.h b/src/plugins/projectexplorer/session.h
index 4f3d48c663..fcf98a23de 100644
--- a/src/plugins/projectexplorer/session.h
+++ b/src/plugins/projectexplorer/session.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef SESSION_H
#define SESSION_H
diff --git a/src/plugins/projectexplorer/sessiondialog.cpp b/src/plugins/projectexplorer/sessiondialog.cpp
index edea072720..f00697597e 100644
--- a/src/plugins/projectexplorer/sessiondialog.cpp
+++ b/src/plugins/projectexplorer/sessiondialog.cpp
@@ -30,11 +30,11 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "sessiondialog.h"
#include "session.h"
#include <QtGui/QInputDialog>
-
#include <QtGui/QValidator>
using namespace ProjectExplorer;
@@ -190,5 +190,5 @@ void SessionDialog::remove()
m_ui.sessionList->addItems(m_sessionManager->sessions());
}
-}
-}
+} // namespace Internal
+} // namespace ProjectExplorer
diff --git a/src/plugins/projectexplorer/sessiondialog.h b/src/plugins/projectexplorer/sessiondialog.h
index 963b15171b..b06704e959 100644
--- a/src/plugins/projectexplorer/sessiondialog.h
+++ b/src/plugins/projectexplorer/sessiondialog.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef SESSIONDIALOG_H
#define SESSIONDIALOG_H
@@ -66,8 +67,7 @@ private:
bool m_startup;
};
-}
-}
-
+} // namespace Internal
+} // namespace ProjectExplorer
#endif // SESSIONDIALOG_H
diff --git a/src/plugins/projectexplorer/taskwindow.cpp b/src/plugins/projectexplorer/taskwindow.cpp
index 2650df89d3..ed59f34ceb 100644
--- a/src/plugins/projectexplorer/taskwindow.cpp
+++ b/src/plugins/projectexplorer/taskwindow.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "taskwindow.h"
#include <coreplugin/editormanager/editormanager.h>
diff --git a/src/plugins/projectexplorer/taskwindow.h b/src/plugins/projectexplorer/taskwindow.h
index 6b9837d64a..efd2752469 100644
--- a/src/plugins/projectexplorer/taskwindow.h
+++ b/src/plugins/projectexplorer/taskwindow.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef TASKWINDOW_H
#define TASKWINDOW_H
@@ -124,4 +125,4 @@ private:
} //namespace Internal
} //namespace ProjectExplorer
-#endif
+#endif // TASKWINDOW_H
diff --git a/src/plugins/projectexplorer/winguiprocess.cpp b/src/plugins/projectexplorer/winguiprocess.cpp
index 0845c9d7ca..d8231cea70 100644
--- a/src/plugins/projectexplorer/winguiprocess.cpp
+++ b/src/plugins/projectexplorer/winguiprocess.cpp
@@ -30,11 +30,12 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
-#include <QtCore/QDir>
#include "winguiprocess.h"
#include "consoleprocess.h"
+#include <QtCore/QDir>
+
using namespace ProjectExplorer::Internal;
WinGuiProcess::WinGuiProcess(QObject *parent)
diff --git a/src/plugins/projectexplorer/winguiprocess.h b/src/plugins/projectexplorer/winguiprocess.h
index 265e6bcc77..ffaefea8cb 100644
--- a/src/plugins/projectexplorer/winguiprocess.h
+++ b/src/plugins/projectexplorer/winguiprocess.h
@@ -30,14 +30,16 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef WINGUIPROCESS_H
#define WINGUIPROCESS_H
+#include "abstractprocess.h"
+
#include <QtCore/QThread>
#include <QtCore/QStringList>
-#include <windows.h>
-#include "abstractprocess.h"
+#include <windows.h>
namespace ProjectExplorer {
namespace Internal {
@@ -72,7 +74,7 @@ private:
unsigned long m_exitCode;
};
-} //namespace Internal
-} //namespace ProjectExplorer
+} // namespace Internal
+} // namespace ProjectExplorer
-#endif
+#endif // WINGUIPROCESS_H
diff --git a/src/plugins/qhelpproject/qhelpproject.cpp b/src/plugins/qhelpproject/qhelpproject.cpp
index 065ddfd982..478b232981 100644
--- a/src/plugins/qhelpproject/qhelpproject.cpp
+++ b/src/plugins/qhelpproject/qhelpproject.cpp
@@ -30,15 +30,16 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
-#include <QtCore/QFileInfo>
-#include <QtCore/QDir>
-
-#include <qhelpsystem.h>
#include "qhelpproject.h"
#include "qhelpprojectmanager.h"
#include "qhelpprojectitems.h"
+#include <QtCore/QFileInfo>
+#include <QtCore/QDir>
+
+#include <qhelpsystem.h>
+
using namespace ProjectExplorer;
using namespace QHelpProjectPlugin::Internal;
diff --git a/src/plugins/qhelpproject/qhelpproject.h b/src/plugins/qhelpproject/qhelpproject.h
index 4ef76a5fc2..275b21f527 100644
--- a/src/plugins/qhelpproject/qhelpproject.h
+++ b/src/plugins/qhelpproject/qhelpproject.h
@@ -30,13 +30,14 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef QHELPPROJECT_H
#define QHELPPROJECT_H
-#include <QtCore/QObject>
-
#include <projectexplorer/ProjectExplorerInterfaces>
+#include <QtCore/QObject>
+
namespace QHelpProjectPlugin {
namespace Internal {
@@ -108,8 +109,7 @@ private:
QStringList m_files;
};
-}
-}
-}
+} // namespace Internal
+} // namespace QHelpProject
-#endif
+#endif // QHELPPROJECT_H
diff --git a/src/plugins/qhelpproject/qhelpprojectitems.cpp b/src/plugins/qhelpproject/qhelpprojectitems.cpp
index 0ddd05ac64..4d39139c44 100644
--- a/src/plugins/qhelpproject/qhelpprojectitems.cpp
+++ b/src/plugins/qhelpproject/qhelpprojectitems.cpp
@@ -30,10 +30,11 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
-#include <QtGui/QFileIconProvider>
#include "qhelpprojectitems.h"
+#include <QtGui/QFileIconProvider>
+
using namespace ProjectExplorer;
using namespace QHelpProjectPlugin::Internal;
diff --git a/src/plugins/qhelpproject/qhelpprojectitems.h b/src/plugins/qhelpproject/qhelpprojectitems.h
index 730bd98ee4..e920de2e8c 100644
--- a/src/plugins/qhelpproject/qhelpprojectitems.h
+++ b/src/plugins/qhelpproject/qhelpprojectitems.h
@@ -30,13 +30,14 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef QHELPPROJECTITEMS_H
#define QHELPPROJECTITEMS_H
-#include <QtGui/QIcon>
-
#include <projectexplorer/ProjectExplorerInterfaces>
+#include <QtGui/QIcon>
+
namespace QHelpProjectPlugin {
namespace Internal {
@@ -84,8 +85,7 @@ private:
static QIcon m_icon;
};
-}
-}
-}
+} // namespace Internal
+} // namespace QHelpProject
-#endif
+#endif // QHELPPROJECTITEMS_H
diff --git a/src/plugins/qhelpproject/qhelpprojectmanager.cpp b/src/plugins/qhelpproject/qhelpprojectmanager.cpp
index 73822c7894..015a6705ef 100644
--- a/src/plugins/qhelpproject/qhelpprojectmanager.cpp
+++ b/src/plugins/qhelpproject/qhelpprojectmanager.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "qhelpprojectmanager.h"
#include "qhelpproject.h"
diff --git a/src/plugins/qhelpproject/qhelpprojectmanager.h b/src/plugins/qhelpproject/qhelpprojectmanager.h
index 5b153fbad3..56a9f21d55 100644
--- a/src/plugins/qhelpproject/qhelpprojectmanager.h
+++ b/src/plugins/qhelpproject/qhelpprojectmanager.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef QHELPPROJECTMANAGER_H
#define QHELPPROJECTMANAGER_H
diff --git a/src/plugins/qt4projectmanager/applicationlauncher.h b/src/plugins/qt4projectmanager/applicationlauncher.h
index d75d6a093e..bb580ab10d 100644
--- a/src/plugins/qt4projectmanager/applicationlauncher.h
+++ b/src/plugins/qt4projectmanager/applicationlauncher.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef APPLICATIONLAUNCHER_H
#define APPLICATIONLAUNCHER_H
@@ -82,7 +83,7 @@ private:
WinGuiProcess *m_winGuiProcess;
};
-} //namespace Internal
-} //namespace Qt4ProjectManager
+} // namespace Internal
+} // namespace Qt4ProjectManager
#endif // APPLICATIONLAUNCHER_H
diff --git a/src/plugins/qt4projectmanager/buildoptionspage.cpp b/src/plugins/qt4projectmanager/buildoptionspage.cpp
index aa87e35f9e..088af5fcd5 100644
--- a/src/plugins/qt4projectmanager/buildoptionspage.cpp
+++ b/src/plugins/qt4projectmanager/buildoptionspage.cpp
@@ -30,11 +30,12 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
-#include <QtCore/QSettings>
-#include <QtGui/QLineEdit>
#include "buildoptionspage.h"
+#include <QtCore/QSettings>
+#include <QtGui/QLineEdit>
+
BuildOptionsPage::BuildOptionsPage(QWorkbench::PluginManager *app)
{
core = app;
diff --git a/src/plugins/qt4projectmanager/buildparserfactory.cpp b/src/plugins/qt4projectmanager/buildparserfactory.cpp
index 024ec99948..b7a5602024 100644
--- a/src/plugins/qt4projectmanager/buildparserfactory.cpp
+++ b/src/plugins/qt4projectmanager/buildparserfactory.cpp
@@ -32,6 +32,7 @@
***************************************************************************/
#include "buildparserfactory.h"
+
#include "qt4projectmanagerconstants.h"
#include "gccparser.h"
#include "msvcparser.h"
@@ -40,7 +41,6 @@ using namespace Qt4ProjectManager::Internal;
GccParserFactory::~GccParserFactory()
{
-
}
bool GccParserFactory::canCreate(const QString & name) const
@@ -56,7 +56,6 @@ ProjectExplorer::BuildParserInterface * GccParserFactory::create(const QString &
MsvcParserFactory::~MsvcParserFactory()
{
-
}
bool MsvcParserFactory::canCreate(const QString & name) const
diff --git a/src/plugins/qt4projectmanager/buildparserfactory.h b/src/plugins/qt4projectmanager/buildparserfactory.h
index 969b7a1cf7..269d0d7743 100644
--- a/src/plugins/qt4projectmanager/buildparserfactory.h
+++ b/src/plugins/qt4projectmanager/buildparserfactory.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef BUILDPARSERFACTORY_H
#define BUILDPARSERFACTORY_H
@@ -62,7 +63,8 @@ public:
virtual ProjectExplorer::BuildParserInterface * create(const QString & name) const;
};
-}
-}
+} // namespace Internal
+} // namespace Qt4ProjectManager
+
-#endif
+#endif // BUILDPARSERFACTORY_H
diff --git a/src/plugins/qt4projectmanager/cesdkhandler.cpp b/src/plugins/qt4projectmanager/cesdkhandler.cpp
index cb62c605e9..cb10cba501 100644
--- a/src/plugins/qt4projectmanager/cesdkhandler.cpp
+++ b/src/plugins/qt4projectmanager/cesdkhandler.cpp
@@ -30,7 +30,9 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "cesdkhandler.h"
+
#include <QtCore/QFile>
#include <QtCore/QDebug>
#include <QtCore/QXmlStreamReader>
@@ -38,7 +40,8 @@
using namespace Qt4ProjectManager::Internal;
using ProjectExplorer::Environment;
-CeSdkInfo::CeSdkInfo() : m_major(0) , m_minor(0)
+CeSdkInfo::CeSdkInfo()
+ : m_major(0) , m_minor(0)
{
}
diff --git a/src/plugins/qt4projectmanager/cesdkhandler.h b/src/plugins/qt4projectmanager/cesdkhandler.h
index 6c4a6b88a3..f830564add 100644
--- a/src/plugins/qt4projectmanager/cesdkhandler.h
+++ b/src/plugins/qt4projectmanager/cesdkhandler.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef CE_SDK_HANDLER_INCL
#define CE_SDK_HANDLER_INCL
@@ -67,13 +68,13 @@ private:
int m_minor;
};
-inline QString CeSdkInfo::name(){ return m_name; }
-inline QString CeSdkInfo::binPath(){ return m_bin; }
-inline QString CeSdkInfo::includePath(){ return m_include; }
-inline QString CeSdkInfo::libPath(){ return m_lib; }
-inline bool CeSdkInfo::isValid(){ return !m_name.isEmpty() && !m_bin.isEmpty() && !m_include.isEmpty() && !m_lib.isEmpty(); }
-inline int CeSdkInfo::majorVersion(){ return m_major; }
-inline int CeSdkInfo::minorVersion(){ return m_minor; }
+inline QString CeSdkInfo::name() { return m_name; }
+inline QString CeSdkInfo::binPath() { return m_bin; }
+inline QString CeSdkInfo::includePath() { return m_include; }
+inline QString CeSdkInfo::libPath() { return m_lib; }
+inline bool CeSdkInfo::isValid() { return !m_name.isEmpty() && !m_bin.isEmpty() && !m_include.isEmpty() && !m_lib.isEmpty(); }
+inline int CeSdkInfo::majorVersion() { return m_major; }
+inline int CeSdkInfo::minorVersion() { return m_minor; }
inline bool CeSdkInfo::isSupported() { return m_major >= 5; }
class CeSdkHandler
@@ -101,7 +102,7 @@ inline QString CeSdkHandler::fixPaths(QString path) const
return QDir::toNativeSeparators(QDir::cleanPath(path.replace(VCINSTALL_MACRO, VCInstallDir).replace(VSINSTALL_MACRO, VSInstallDir).replace(QLatin1String(";$(PATH)"), QLatin1String(""))));
}
-}
-}
+} // namespace Internal
+} // namespace Qt4ProjectManager
-#endif
+#endif // CE_SDK_HANDLER_INCL
diff --git a/src/plugins/qt4projectmanager/deployhelper.cpp b/src/plugins/qt4projectmanager/deployhelper.cpp
index 393be01554..57386afd2e 100644
--- a/src/plugins/qt4projectmanager/deployhelper.cpp
+++ b/src/plugins/qt4projectmanager/deployhelper.cpp
@@ -40,12 +40,13 @@
using namespace Qt4ProjectManager;
using namespace Qt4ProjectManager::Internal;
+
DeployHelperRunStep::DeployHelperRunStep(Qt4Project *pro)
: BuildStep(pro), m_started(false), m_pro(pro)
{
QDir workbenchDir = QCoreApplication::applicationDirPath();
workbenchDir.cdUp();
- m_binary = QDir::convertSeparators( workbenchDir.absolutePath() + QLatin1String("/qtembeddedtools/qemudeployer"));
+ m_binary = QDir::convertSeparators(workbenchDir.absolutePath() + QLatin1String("/qtembeddedtools/qemudeployer"));
m_id = "id";
};
diff --git a/src/plugins/qt4projectmanager/deployhelper.h b/src/plugins/qt4projectmanager/deployhelper.h
index f3a562d8ca..381353babc 100644
--- a/src/plugins/qt4projectmanager/deployhelper.h
+++ b/src/plugins/qt4projectmanager/deployhelper.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef DEPLOYHELPER_H
#define DEPLOYHELPER_H
diff --git a/src/plugins/qt4projectmanager/directorywatcher.cpp b/src/plugins/qt4projectmanager/directorywatcher.cpp
index 4025a22e9e..689cd0dfd0 100644
--- a/src/plugins/qt4projectmanager/directorywatcher.cpp
+++ b/src/plugins/qt4projectmanager/directorywatcher.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "directorywatcher.h"
#include <QtCore/QDebug>
diff --git a/src/plugins/qt4projectmanager/directorywatcher.h b/src/plugins/qt4projectmanager/directorywatcher.h
index 45680d33e2..3f5f5a846f 100644
--- a/src/plugins/qt4projectmanager/directorywatcher.h
+++ b/src/plugins/qt4projectmanager/directorywatcher.h
@@ -30,15 +30,15 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
-#ifndef DIRECTORYWATCHER
-#define DIRECTORYWATCHER
+
+#ifndef DIRECTORYWATCHER_H
+#define DIRECTORYWATCHER_H
#include <QtCore/QDateTime>
#include <QtCore/QHash>
#include <QtCore/QObject>
#include <QtCore/QStringList>
-
QT_BEGIN_NAMESPACE
class QTimer;
class QFileSystemWatcher;
@@ -87,7 +87,7 @@ private:
FileModificationTimeMap m_files;
};
-}
-} //namespace Qt4ProjectManager
+} // namespace Internal
+} // namespace Qt4ProjectManager
-#endif
+#endif // DIRECTORYWATCHER_H
diff --git a/src/plugins/qt4projectmanager/embeddedpropertiespage.cpp b/src/plugins/qt4projectmanager/embeddedpropertiespage.cpp
index 1f37fb7c63..1689a1bad5 100644
--- a/src/plugins/qt4projectmanager/embeddedpropertiespage.cpp
+++ b/src/plugins/qt4projectmanager/embeddedpropertiespage.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "embeddedpropertiespage.h"
#include "qt4project.h"
diff --git a/src/plugins/qt4projectmanager/embeddedpropertiespage.h b/src/plugins/qt4projectmanager/embeddedpropertiespage.h
index 59f313d2a7..238117a3d5 100644
--- a/src/plugins/qt4projectmanager/embeddedpropertiespage.h
+++ b/src/plugins/qt4projectmanager/embeddedpropertiespage.h
@@ -30,11 +30,14 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef EMBEDDEDPROPERTIESPAGE_H
#define EMBEDDEDPROPERTIESPAGE_H
#include "ui_embeddedpropertiespage.h"
+
#include <projectexplorer/iprojectproperties.h>
+
#include <QtCore/QModelIndex>
namespace ProjectExplorer {
diff --git a/src/plugins/qt4projectmanager/gccparser.cpp b/src/plugins/qt4projectmanager/gccparser.cpp
index a3b25905f5..de69904ac8 100644
--- a/src/plugins/qt4projectmanager/gccparser.cpp
+++ b/src/plugins/qt4projectmanager/gccparser.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "gccparser.h"
#include "qt4projectmanagerconstants.h"
diff --git a/src/plugins/qt4projectmanager/gccparser.h b/src/plugins/qt4projectmanager/gccparser.h
index cf918b19a2..aca5bc36e4 100644
--- a/src/plugins/qt4projectmanager/gccparser.h
+++ b/src/plugins/qt4projectmanager/gccparser.h
@@ -30,12 +30,14 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
-#ifndef GCCPARSER
-#define GCCPARSER
-#include <QtCore/QRegExp>
+#ifndef GCCPARSER_H
+#define GCCPARSER_H
+
#include <projectexplorer/ProjectExplorerInterfaces>
+#include <QtCore/QRegExp>
+
namespace Qt4ProjectManager {
class GccParser : public ProjectExplorer::BuildParserInterface
@@ -55,6 +57,6 @@ private:
bool m_linkIndent;
};
-} //namespace ProjectExplorer
+} // namespace ProjectExplorer
-#endif
+#endif // GCCPARSER_H
diff --git a/src/plugins/qt4projectmanager/gccpreprocessor.cpp b/src/plugins/qt4projectmanager/gccpreprocessor.cpp
index 69b304538e..79d16d47e0 100644
--- a/src/plugins/qt4projectmanager/gccpreprocessor.cpp
+++ b/src/plugins/qt4projectmanager/gccpreprocessor.cpp
@@ -32,6 +32,7 @@
***************************************************************************/
#include "gccpreprocessor.h"
+
#include <QProcess>
#include <QString>
#include <QFile>
diff --git a/src/plugins/qt4projectmanager/gccpreprocessor.h b/src/plugins/qt4projectmanager/gccpreprocessor.h
index b1f1f211f2..a99cfbb7a3 100644
--- a/src/plugins/qt4projectmanager/gccpreprocessor.h
+++ b/src/plugins/qt4projectmanager/gccpreprocessor.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef GCCPREPROCESSOR_H
#define GCCPREPROCESSOR_H
@@ -56,7 +57,7 @@ private:
QList<HeaderPath> m_systemHeaderPaths;
};
-} // end of namespace Internal
-} // end of namespace Qt4ProjectManager
+} // namespace Internal
+} // namespace Qt4ProjectManager
#endif // GCCPREPROCESSOR_H
diff --git a/src/plugins/qt4projectmanager/gdbmacrosbuildstep.cpp b/src/plugins/qt4projectmanager/gdbmacrosbuildstep.cpp
index fee51e3015..72530ebefa 100644
--- a/src/plugins/qt4projectmanager/gdbmacrosbuildstep.cpp
+++ b/src/plugins/qt4projectmanager/gdbmacrosbuildstep.cpp
@@ -30,7 +30,9 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "gdbmacrosbuildstep.h"
+
#include "qt4projectmanagerconstants.h"
#include "qt4project.h"
#include "qmakestep.h"
@@ -42,7 +44,6 @@ using namespace Qt4ProjectManager::Internal;
GdbMacrosBuildStep::GdbMacrosBuildStep(Qt4Project *project)
: BuildStep(project), m_project(project), m_configWidget(new GdbMacrosBuildStepConfigWidget)
{
-
}
GdbMacrosBuildStep::~GdbMacrosBuildStep()
diff --git a/src/plugins/qt4projectmanager/gdbmacrosbuildstep.h b/src/plugins/qt4projectmanager/gdbmacrosbuildstep.h
index a754771c74..94e21798b1 100644
--- a/src/plugins/qt4projectmanager/gdbmacrosbuildstep.h
+++ b/src/plugins/qt4projectmanager/gdbmacrosbuildstep.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef GDBMACROSBUILDSTEP_H
#define GDBMACROSBUILDSTEP_H
@@ -76,7 +77,8 @@ class GdbMacrosBuildStepConfigWidget : public ProjectExplorer::BuildStepConfigWi
virtual QString displayName() const;
virtual void init(const QString &buildConfiguration);
};
-}
-}
+
+} // namespace Internal
+} // namespace Qt4ProjectManager
#endif // GDBMACROSBUILDSTEP_H
diff --git a/src/plugins/qt4projectmanager/headerpath.h b/src/plugins/qt4projectmanager/headerpath.h
index af1b687b89..cb99c60707 100644
--- a/src/plugins/qt4projectmanager/headerpath.h
+++ b/src/plugins/qt4projectmanager/headerpath.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef HEADERPATH_H
#define HEADERPATH_H
@@ -63,7 +64,8 @@ private:
Kind _kind;
};
-} // end of namespace Internal
-} // end of namespace Qt4ProjectManager
+} // namespace Internal
+} // namespace Qt4ProjectManager
+
#endif // HEADERPATH_H
diff --git a/src/plugins/qt4projectmanager/makestep.cpp b/src/plugins/qt4projectmanager/makestep.cpp
index cbb7d685f8..d88281ce59 100644
--- a/src/plugins/qt4projectmanager/makestep.cpp
+++ b/src/plugins/qt4projectmanager/makestep.cpp
@@ -30,13 +30,16 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "makestep.h"
+
#include "qt4project.h"
#include "qt4projectmanagerconstants.h"
+#include <extensionsystem/ExtensionSystemInterfaces>
+
#include <QFileInfo>
#include <QDir>
-#include <extensionsystem/ExtensionSystemInterfaces>
using ProjectExplorer::IBuildParserFactory;
using ProjectExplorer::BuildParserInterface;
diff --git a/src/plugins/qt4projectmanager/makestep.h b/src/plugins/qt4projectmanager/makestep.h
index 2455db5364..617125e34e 100644
--- a/src/plugins/qt4projectmanager/makestep.h
+++ b/src/plugins/qt4projectmanager/makestep.h
@@ -30,16 +30,16 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef MAKESTEP_H
#define MAKESTEP_H
-#include <projectexplorer/ProjectExplorerInterfaces>
-#include <QDebug>
-
#include "qtversionmanager.h"
-
#include "ui_makestep.h"
+#include <projectexplorer/ProjectExplorerInterfaces>
+#include <QDebug>
+
namespace Qt4ProjectManager {
class Qt4Project;
diff --git a/src/plugins/qt4projectmanager/msvcenvironment.cpp b/src/plugins/qt4projectmanager/msvcenvironment.cpp
index 2de4ae24b4..1c3a158d72 100644
--- a/src/plugins/qt4projectmanager/msvcenvironment.cpp
+++ b/src/plugins/qt4projectmanager/msvcenvironment.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "msvcenvironment.h"
#include <QSettings>
diff --git a/src/plugins/qt4projectmanager/msvcenvironment.h b/src/plugins/qt4projectmanager/msvcenvironment.h
index 7354e5706b..85b4150f9a 100644
--- a/src/plugins/qt4projectmanager/msvcenvironment.h
+++ b/src/plugins/qt4projectmanager/msvcenvironment.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef MSVCENVIRONMENT_H
#define MSVCENVIRONMENT_H
@@ -59,6 +60,7 @@ private:
mutable bool m_valuesSet;
};
-}
-}
-#endif
+} // namespace Internal
+} // namespace Qt4ProjectManager
+
+#endif // MSVCENVIRONMENT_H
diff --git a/src/plugins/qt4projectmanager/msvcparser.cpp b/src/plugins/qt4projectmanager/msvcparser.cpp
index 3a63948e0c..ed7e4eacf4 100644
--- a/src/plugins/qt4projectmanager/msvcparser.cpp
+++ b/src/plugins/qt4projectmanager/msvcparser.cpp
@@ -30,11 +30,12 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
-#include <QtCore/QStringList>
#include "msvcparser.h"
#include "qt4projectmanagerconstants.h"
+#include <QtCore/QStringList>
+
using namespace Qt4ProjectManager;
MsvcParser::MsvcParser()
diff --git a/src/plugins/qt4projectmanager/msvcparser.h b/src/plugins/qt4projectmanager/msvcparser.h
index 0f01271cb4..d19ee77d81 100644
--- a/src/plugins/qt4projectmanager/msvcparser.h
+++ b/src/plugins/qt4projectmanager/msvcparser.h
@@ -1,4 +1,4 @@
-/***************************************************************************
+/***************************************************************************
**
** This file is part of Qt Creator
**
@@ -30,12 +30,14 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef MSVCPARSER_H
#define MSVCPARSER_H
-#include <QtCore/QRegExp>
#include <projectexplorer/ProjectExplorerInterfaces>
+#include <QtCore/QRegExp>
+
namespace Qt4ProjectManager {
class MsvcParser : public ProjectExplorer::BuildParserInterface
@@ -54,6 +56,6 @@ private:
QRegExp m_linkRegExp;
};
-} //namespace ProjectExplorer
+} // namespace ProjectExplorer
-#endif
+#endif // MsvcParser
diff --git a/src/plugins/qt4projectmanager/profilecache.cpp b/src/plugins/qt4projectmanager/profilecache.cpp
index fc6ce31177..e359c2c17d 100644
--- a/src/plugins/qt4projectmanager/profilecache.cpp
+++ b/src/plugins/qt4projectmanager/profilecache.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "qt4project.h"
#include "qt4nodes.h"
#include "qt4projectmanager.h"
diff --git a/src/plugins/qt4projectmanager/profilecache.h b/src/plugins/qt4projectmanager/profilecache.h
index 9936862fff..993ae6a489 100644
--- a/src/plugins/qt4projectmanager/profilecache.h
+++ b/src/plugins/qt4projectmanager/profilecache.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef PROFILECACHE_H
#define PROFILECACHE_H
diff --git a/src/plugins/qt4projectmanager/profileeditor.cpp b/src/plugins/qt4projectmanager/profileeditor.cpp
index 91046a883b..79638d74fc 100644
--- a/src/plugins/qt4projectmanager/profileeditor.cpp
+++ b/src/plugins/qt4projectmanager/profileeditor.cpp
@@ -30,7 +30,9 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "profileeditor.h"
+
#include "profilehighlighter.h"
#include "qt4projectmanager.h"
#include "qt4projectmanagerconstants.h"
diff --git a/src/plugins/qt4projectmanager/profileeditor.h b/src/plugins/qt4projectmanager/profileeditor.h
index 3fc90d84e9..de52d8a032 100644
--- a/src/plugins/qt4projectmanager/profileeditor.h
+++ b/src/plugins/qt4projectmanager/profileeditor.h
@@ -30,12 +30,14 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
-#ifndef PROFILEEDITOR
-#define PROFILEEDITOR
+
+#ifndef PROFILEEDITOR_H
+#define PROFILEEDITOR_H
+
+#include "ui_proeditorcontainer.h"
#include <texteditor/basetextdocument.h>
#include <texteditor/basetexteditor.h>
-#include "ui_proeditorcontainer.h"
namespace TextEditor {
class FontSettings;
@@ -118,4 +120,4 @@ private:
} // namespace Internal
} // namespace Qt4ProjectManager
-#endif // PROFILEEDITOR
+#endif // PROFILEEDITOR_H
diff --git a/src/plugins/qt4projectmanager/profileeditorfactory.cpp b/src/plugins/qt4projectmanager/profileeditorfactory.cpp
index 0b4818187f..2ad95e995a 100644
--- a/src/plugins/qt4projectmanager/profileeditorfactory.cpp
+++ b/src/plugins/qt4projectmanager/profileeditorfactory.cpp
@@ -30,7 +30,9 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "profileeditorfactory.h"
+
#include "qt4projectmanager.h"
#include "qt4projectmanagerconstants.h"
#include "profileeditor.h"
diff --git a/src/plugins/qt4projectmanager/profileeditorfactory.h b/src/plugins/qt4projectmanager/profileeditorfactory.h
index 16abbfd8b2..4f6909ae69 100644
--- a/src/plugins/qt4projectmanager/profileeditorfactory.h
+++ b/src/plugins/qt4projectmanager/profileeditorfactory.h
@@ -30,10 +30,12 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef PROFILEEDITORFACTORY_H
#define PROFILEEDITORFACTORY_H
#include <coreplugin/editormanager/ieditorfactory.h>
+
#include <QtCore/QStringList>
QT_BEGIN_NAMESPACE
diff --git a/src/plugins/qt4projectmanager/profilehighlighter.cpp b/src/plugins/qt4projectmanager/profilehighlighter.cpp
index 2e75f2f161..a21f0a7f5b 100644
--- a/src/plugins/qt4projectmanager/profilehighlighter.cpp
+++ b/src/plugins/qt4projectmanager/profilehighlighter.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "profilehighlighter.h"
#include <QtCore/QRegExp>
diff --git a/src/plugins/qt4projectmanager/profilehighlighter.h b/src/plugins/qt4projectmanager/profilehighlighter.h
index e503bac023..b4ad5a7224 100644
--- a/src/plugins/qt4projectmanager/profilehighlighter.h
+++ b/src/plugins/qt4projectmanager/profilehighlighter.h
@@ -30,13 +30,15 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef PROFILEHIGHLIGHTER_H
#define PROFILEHIGHLIGHTER_H
#include "qt4projectmanagerenums.h"
+
+#include <QtCore/QtAlgorithms>
#include <QtGui/QSyntaxHighlighter>
#include <QtGui/QTextCharFormat>
-#include <QtCore/QtAlgorithms>
namespace Qt4ProjectManager {
namespace Internal {
diff --git a/src/plugins/qt4projectmanager/profilereader.cpp b/src/plugins/qt4projectmanager/profilereader.cpp
index 3af30f4338..4c81c0aeec 100644
--- a/src/plugins/qt4projectmanager/profilereader.cpp
+++ b/src/plugins/qt4projectmanager/profilereader.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "profilereader.h"
#include "profilecache.h"
diff --git a/src/plugins/qt4projectmanager/profilereader.h b/src/plugins/qt4projectmanager/profilereader.h
index 51bbf56b73..50e2077c55 100644
--- a/src/plugins/qt4projectmanager/profilereader.h
+++ b/src/plugins/qt4projectmanager/profilereader.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef PROFILEREADER_H
#define PROFILEREADER_H
@@ -40,7 +41,6 @@
#include <QtCore/QMap>
namespace Qt4ProjectManager {
-
namespace Internal {
class ProFileCache;
@@ -80,7 +80,7 @@ private:
QMap<QString, ProFile *> m_includeFiles;
};
-} //namespace Internal
-} //namespace Qt4ProjectManager
+} // namespace Internal
+} // namespace Qt4ProjectManager
#endif // PROFILEREADER_H
diff --git a/src/plugins/qt4projectmanager/projectloadwizard.cpp b/src/plugins/qt4projectmanager/projectloadwizard.cpp
index 35fe74db29..9a75d2e9dd 100644
--- a/src/plugins/qt4projectmanager/projectloadwizard.cpp
+++ b/src/plugins/qt4projectmanager/projectloadwizard.cpp
@@ -32,17 +32,20 @@
***************************************************************************/
#include "projectloadwizard.h"
+
#include "qt4project.h"
#include "qtversionmanager.h"
#include "qt4projectmanager.h"
#include "qmakestep.h"
#include "makestep.h"
+
#include <QtCore/QVariant>
#include <QtGui/QAction>
#include <QtGui/QApplication>
#include <QtGui/QButtonGroup>
#include <QtGui/QCheckBox>
#include <QtGui/QComboBox>
+#include <QtGui/QFileDialog>
#include <QtGui/QFormLayout>
#include <QtGui/QHBoxLayout>
#include <QtGui/QHeaderView>
@@ -55,7 +58,6 @@
#include <QtGui/QVBoxLayout>
#include <QtGui/QWizard>
#include <QtGui/QWizardPage>
-#include <QFileDialog>
using namespace Qt4ProjectManager;
using namespace Qt4ProjectManager::Internal;
diff --git a/src/plugins/qt4projectmanager/projectloadwizard.h b/src/plugins/qt4projectmanager/projectloadwizard.h
index 961941bb10..c205b84510 100644
--- a/src/plugins/qt4projectmanager/projectloadwizard.h
+++ b/src/plugins/qt4projectmanager/projectloadwizard.h
@@ -30,21 +30,13 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
-/********************************************************************************
-** Form generated from reading ui file 'projectloadwizard.ui'
-**
-** Created: Mon Nov 3 16:31:45 2008
-** by: Qt User Interface Compiler version 4.5.0
-**
-** WARNING! All changes made in this file will be lost when recompiling ui file!
-********************************************************************************/
#ifndef PROJECTLOADWIZARD_H
#define PROJECTLOADWIZARD_H
#include "qt4project.h"
-#include <QtGui/QWizard>
+#include <QtGui/QWizard>
QT_BEGIN_NAMESPACE
class QWizardPage;
@@ -74,6 +66,7 @@ public:
virtual int nextId() const;
virtual void done(int result);
void execDialog();
+
private:
void addBuildConfiguration(QString name, QtVersion *qtversion, QtVersion::QmakeBuildConfig buildConfiguration);
void setupImportPage(QtVersion *version, QtVersion::QmakeBuildConfig buildConfig);
@@ -96,7 +89,8 @@ private:
void setupUi();
};
-}
-}
-#endif // UI_PROJECTLOADWIZARD_H
+} // namespace Internal
+} // namespace Qt4ProjectManager
+
+#endif // PROJECTLOADWIZARD_H
diff --git a/src/plugins/qt4projectmanager/qmakebuildstepfactory.cpp b/src/plugins/qt4projectmanager/qmakebuildstepfactory.cpp
index 01053ef50c..4bf3b8ee98 100644
--- a/src/plugins/qt4projectmanager/qmakebuildstepfactory.cpp
+++ b/src/plugins/qt4projectmanager/qmakebuildstepfactory.cpp
@@ -30,7 +30,9 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "qmakebuildstepfactory.h"
+
#include "qmakestep.h"
#include "makestep.h"
#include "qt4project.h"
diff --git a/src/plugins/qt4projectmanager/qmakebuildstepfactory.h b/src/plugins/qt4projectmanager/qmakebuildstepfactory.h
index 25e5dfeef5..3e06f864ca 100644
--- a/src/plugins/qt4projectmanager/qmakebuildstepfactory.h
+++ b/src/plugins/qt4projectmanager/qmakebuildstepfactory.h
@@ -30,10 +30,12 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef QMAKEBUILDSTEPFACTORY_H
#define QMAKEBUILDSTEPFACTORY_H
#include <projectexplorer/buildstep.h>
+
#include <QString>
namespace ProjectExplorer {
diff --git a/src/plugins/qt4projectmanager/qmakestep.cpp b/src/plugins/qt4projectmanager/qmakestep.cpp
index aaf39ba6f8..44654496dc 100644
--- a/src/plugins/qt4projectmanager/qmakestep.cpp
+++ b/src/plugins/qt4projectmanager/qmakestep.cpp
@@ -30,7 +30,9 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "qmakestep.h"
+
#include "qt4project.h"
#include "qt4projectmanagerconstants.h"
#include "qt4projectmanager.h"
diff --git a/src/plugins/qt4projectmanager/qmakestep.h b/src/plugins/qt4projectmanager/qmakestep.h
index 66a6c89848..af9bf743dd 100644
--- a/src/plugins/qt4projectmanager/qmakestep.h
+++ b/src/plugins/qt4projectmanager/qmakestep.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef QMAKESTEP_H
#define QMAKESTEP_H
diff --git a/src/plugins/qt4projectmanager/qt4buildconfigwidget.cpp b/src/plugins/qt4projectmanager/qt4buildconfigwidget.cpp
index e7f2478d28..a9d7753cfb 100644
--- a/src/plugins/qt4projectmanager/qt4buildconfigwidget.cpp
+++ b/src/plugins/qt4projectmanager/qt4buildconfigwidget.cpp
@@ -30,12 +30,14 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "qt4buildconfigwidget.h"
-#include "ui_qt4buildconfigwidget.h"
+
+#include "makestep.h"
+#include "qmakestep.h"
#include "qt4project.h"
#include "qt4projectmanager.h"
-#include "qmakestep.h"
-#include "makestep.h"
+#include "ui_qt4buildconfigwidget.h"
#include <QtGui/QFileDialog>
diff --git a/src/plugins/qt4projectmanager/qt4buildconfigwidget.h b/src/plugins/qt4projectmanager/qt4buildconfigwidget.h
index 0055d99cbd..5a14376d00 100644
--- a/src/plugins/qt4projectmanager/qt4buildconfigwidget.h
+++ b/src/plugins/qt4projectmanager/qt4buildconfigwidget.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef QT4BUILDCONFIGWIDGET_H
#define QT4BUILDCONFIGWIDGET_H
@@ -70,7 +71,7 @@ private:
QString m_buildConfiguration;
};
-} // Internal
-} // Qt4ProjectManager
+} // namespace Internal
+} // namespace Qt4ProjectManager
#endif // QT4BUILDCONFIGWIDGET_H
diff --git a/src/plugins/qt4projectmanager/qt4buildenvironmentwidget.cpp b/src/plugins/qt4projectmanager/qt4buildenvironmentwidget.cpp
index 5c439f570a..98dbd196a1 100644
--- a/src/plugins/qt4projectmanager/qt4buildenvironmentwidget.cpp
+++ b/src/plugins/qt4projectmanager/qt4buildenvironmentwidget.cpp
@@ -30,10 +30,12 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "qt4buildenvironmentwidget.h"
-#include "ui_qt4buildenvironmentwidget.h"
+#include "ui_qt4buildenvironmentwidget.h"
#include "qt4project.h"
+
#include <projectexplorer/environmenteditmodel.h>
namespace {
@@ -69,8 +71,8 @@ Qt4BuildEnvironmentWidget::Qt4BuildEnvironmentWidget(Qt4Project *project)
this, SLOT(removeEnvironmentButtonClicked()));
connect(m_ui->unsetButton, SIGNAL(clicked(bool)),
this, SLOT(unsetEnvironmentButtonClicked()));
- connect(m_ui->environmentTreeView->selectionModel(), SIGNAL(currentChanged(const QModelIndex&, const QModelIndex &)),
- this, SLOT(environmentCurrentIndexChanged(const QModelIndex &, const QModelIndex &)));
+ connect(m_ui->environmentTreeView->selectionModel(), SIGNAL(currentChanged(QModelIndex, QModelIndex)),
+ this, SLOT(environmentCurrentIndexChanged(QModelIndex, QModelIndex)));
connect(m_ui->clearSystemEnvironmentCheckBox, SIGNAL(toggled(bool)),
this, SLOT(clearSystemEnvironmentCheckBoxClicked(bool)));
}
diff --git a/src/plugins/qt4projectmanager/qt4buildenvironmentwidget.h b/src/plugins/qt4projectmanager/qt4buildenvironmentwidget.h
index 43b8f67a52..d5adbd8e6c 100644
--- a/src/plugins/qt4projectmanager/qt4buildenvironmentwidget.h
+++ b/src/plugins/qt4projectmanager/qt4buildenvironmentwidget.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef QT4BUILDENVIRONMENTWIDGET_H
#define QT4BUILDENVIRONMENTWIDGET_H
@@ -52,6 +53,7 @@ class Qt4BuildEnvironmentWidget;
class Qt4BuildEnvironmentWidget : public ProjectExplorer::BuildStepConfigWidget
{
Q_OBJECT
+
public:
Qt4BuildEnvironmentWidget(Qt4Project *project);
~Qt4BuildEnvironmentWidget();
@@ -77,7 +79,7 @@ private:
QString m_buildConfiguration;
};
-} // Internal
-} // Qt4ProjectManager
+} // namespace Internal
+} // namespace Qt4ProjectManager
#endif // QT4BUILDENVIRONMENTWIDGET_H
diff --git a/src/plugins/qt4projectmanager/qt4nodes.cpp b/src/plugins/qt4projectmanager/qt4nodes.cpp
index e0e9ac1648..f802738f65 100644
--- a/src/plugins/qt4projectmanager/qt4nodes.cpp
+++ b/src/plugins/qt4projectmanager/qt4nodes.cpp
@@ -30,7 +30,9 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "proeditormodel.h"
+
#include "profilecache.h"
#include "profilereader.h"
#include "qt4nodes.h"
diff --git a/src/plugins/qt4projectmanager/qt4nodes.h b/src/plugins/qt4projectmanager/qt4nodes.h
index baecadfbc8..87cbdff28a 100644
--- a/src/plugins/qt4projectmanager/qt4nodes.h
+++ b/src/plugins/qt4projectmanager/qt4nodes.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef QT4NODES_H
#define QT4NODES_H
diff --git a/src/plugins/qt4projectmanager/qt4project.cpp b/src/plugins/qt4projectmanager/qt4project.cpp
index 526283aedc..8ec4ea7f4b 100644
--- a/src/plugins/qt4projectmanager/qt4project.cpp
+++ b/src/plugins/qt4projectmanager/qt4project.cpp
@@ -30,7 +30,9 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "qt4project.h"
+
#include "qt4projectmanager.h"
#include "profilecache.h"
#include "profilereader.h"
diff --git a/src/plugins/qt4projectmanager/qt4project.h b/src/plugins/qt4projectmanager/qt4project.h
index bd7711824a..5284646ae4 100644
--- a/src/plugins/qt4projectmanager/qt4project.h
+++ b/src/plugins/qt4projectmanager/qt4project.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef QT4PROJECT_H
#define QT4PROJECT_H
diff --git a/src/plugins/qt4projectmanager/qt4projectmanager.cpp b/src/plugins/qt4projectmanager/qt4projectmanager.cpp
index 7d273dab5a..7e19f36450 100644
--- a/src/plugins/qt4projectmanager/qt4projectmanager.cpp
+++ b/src/plugins/qt4projectmanager/qt4projectmanager.cpp
@@ -30,7 +30,9 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "qt4projectmanager.h"
+
#include "qt4projectmanagerconstants.h"
#include "qt4projectmanagerplugin.h"
#include "qt4nodes.h"
diff --git a/src/plugins/qt4projectmanager/qt4projectmanager.h b/src/plugins/qt4projectmanager/qt4projectmanager.h
index 72e9b48820..3ef99a694f 100644
--- a/src/plugins/qt4projectmanager/qt4projectmanager.h
+++ b/src/plugins/qt4projectmanager/qt4projectmanager.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef QT4PROJECTMANAGER_H
#define QT4PROJECTMANAGER_H
@@ -118,6 +119,6 @@ private:
Internal::ProFileCache *m_proFileCache;
};
-} //namespace Qt4ProjectManager
+} // namespace Qt4ProjectManager
-#endif //QT4PROJECTMANAGER_H
+#endif // QT4PROJECTMANAGER_H
diff --git a/src/plugins/qt4projectmanager/qt4projectmanagerconstants.h b/src/plugins/qt4projectmanager/qt4projectmanagerconstants.h
index a8b8c2cdbb..bce80c7713 100644
--- a/src/plugins/qt4projectmanager/qt4projectmanagerconstants.h
+++ b/src/plugins/qt4projectmanager/qt4projectmanagerconstants.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef QT4PROJECTMANAGERCONSTANTS_H
#define QT4PROJECTMANAGERCONSTANTS_H
@@ -84,6 +85,7 @@ const char * const BUILD_PARSER_GCC = "BuildParser.Gcc";
// views
const char * const VIEW_DETAILED = "Qt4.View.Detailed";
const char * const VIEW_PROFILESONLY = "Qt4.View.ProjectHierarchy";
+
} // namespace Constants
} // namespace Qt4ProjectManager
diff --git a/src/plugins/qt4projectmanager/qt4projectmanagerenums.h b/src/plugins/qt4projectmanager/qt4projectmanagerenums.h
index 6482775da8..7f16692cef 100644
--- a/src/plugins/qt4projectmanager/qt4projectmanagerenums.h
+++ b/src/plugins/qt4projectmanager/qt4projectmanagerenums.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef QT4PRO_ENUMS_H
#define QT4PRO_ENUMS_H
@@ -46,4 +47,4 @@ enum ProfileFormats {
} // namespace Internal
} // namespace Qt4ProjectManager
-#endif //QT4PRO_ENUMS_H
+#endif // QT4PRO_ENUMS_H
diff --git a/src/plugins/qt4projectmanager/qt4projectmanagerplugin.cpp b/src/plugins/qt4projectmanager/qt4projectmanagerplugin.cpp
index 44c377bbdd..469df69dd3 100644
--- a/src/plugins/qt4projectmanager/qt4projectmanagerplugin.cpp
+++ b/src/plugins/qt4projectmanager/qt4projectmanagerplugin.cpp
@@ -30,7 +30,9 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "qt4projectmanagerplugin.h"
+
#include "qt4projectmanager.h"
#include "wizards/consoleappwizard.h"
#include "wizards/guiappwizard.h"
diff --git a/src/plugins/qt4projectmanager/qt4projectmanagerplugin.h b/src/plugins/qt4projectmanager/qt4projectmanagerplugin.h
index 5c83f2c6c6..207bc02bef 100644
--- a/src/plugins/qt4projectmanager/qt4projectmanagerplugin.h
+++ b/src/plugins/qt4projectmanager/qt4projectmanagerplugin.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef QT4PROJECTMANAGERPLUGIN_H
#define QT4PROJECTMANAGERPLUGIN_H
@@ -91,7 +92,7 @@ private:
QAction *m_runQMakeActionContextMenu;
};
-} //namespace Internal
-} //namespace Qt4ProjectManager
+} // namespace Internal
+} // namespace Qt4ProjectManager
#endif // QT4PROJECTMANAGERPLUGIN_H
diff --git a/src/plugins/qt4projectmanager/qt4runconfiguration.cpp b/src/plugins/qt4projectmanager/qt4runconfiguration.cpp
index e415a1ee52..28f7ca2a8c 100644
--- a/src/plugins/qt4projectmanager/qt4runconfiguration.cpp
+++ b/src/plugins/qt4projectmanager/qt4runconfiguration.cpp
@@ -30,13 +30,14 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "qt4runconfiguration.h"
+
#include "qt4project.h"
#include "profilereader.h"
#include "qt4nodes.h"
#include "makestep.h"
-
#include <coreplugin/icore.h>
#include <coreplugin/messagemanager.h>
#include <coreplugin/variablemanager.h>
diff --git a/src/plugins/qt4projectmanager/qt4runconfiguration.h b/src/plugins/qt4projectmanager/qt4runconfiguration.h
index 5d1bb39757..cd2cae85c0 100644
--- a/src/plugins/qt4projectmanager/qt4runconfiguration.h
+++ b/src/plugins/qt4projectmanager/qt4runconfiguration.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef QT4RUNCONFIGURATION_H
#define QT4RUNCONFIGURATION_H
diff --git a/src/plugins/qt4projectmanager/qtversionmanager.cpp b/src/plugins/qt4projectmanager/qtversionmanager.cpp
index 0ac191818b..0c68fcd98e 100644
--- a/src/plugins/qt4projectmanager/qtversionmanager.cpp
+++ b/src/plugins/qt4projectmanager/qtversionmanager.cpp
@@ -30,7 +30,9 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "qtversionmanager.h"
+
#include "qt4projectmanagerconstants.h"
#include "msvcenvironment.h"
#include "cesdkhandler.h"
diff --git a/src/plugins/qt4projectmanager/qtversionmanager.h b/src/plugins/qt4projectmanager/qtversionmanager.h
index 6c2f64d60c..5810cfa1c2 100644
--- a/src/plugins/qt4projectmanager/qtversionmanager.h
+++ b/src/plugins/qt4projectmanager/qtversionmanager.h
@@ -30,17 +30,19 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef QTVERSIONMANAGER_H
#define QTVERSIONMANAGER_H
-#include <QtCore/QPointer>
-#include <QtGui/QWidget>
+#include "ui_qtversionmanager.h"
+
#include <coreplugin/dialogs/ioptionspage.h>
#include <coreplugin/icore.h>
#include <projectexplorer/ProjectExplorerInterfaces>
-#include <QDebug>
-#include "ui_qtversionmanager.h"
+#include <QtCore/QDebug>
+#include <QtCore/QPointer>
+#include <QtGui/QWidget>
namespace Qt4ProjectManager {
namespace Internal {
@@ -208,7 +210,7 @@ private:
int m_idcount;
};
-} //namespace Internal
-} //namespace Qt4ProjectManager
+} // namespace Internal
+} // namespace Qt4ProjectManager
-#endif //QTVERSIONMANAGER_H
+#endif // QTVERSIONMANAGER_H
diff --git a/src/plugins/qt4projectmanager/speinfo.cpp b/src/plugins/qt4projectmanager/speinfo.cpp
index 9cfd2acbb7..58c69769bd 100644
--- a/src/plugins/qt4projectmanager/speinfo.cpp
+++ b/src/plugins/qt4projectmanager/speinfo.cpp
@@ -30,10 +30,12 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "speinfo.h"
+
#include <QtCore/QCoreApplication>
+#include <QtCore/QDebug>
#include <QtCore/QVariant>
-#include <QtDebug>
using namespace Qt4ProjectManager::Internal;
diff --git a/src/plugins/qt4projectmanager/speinfo.h b/src/plugins/qt4projectmanager/speinfo.h
index 891247adb4..1da8f8502b 100644
--- a/src/plugins/qt4projectmanager/speinfo.h
+++ b/src/plugins/qt4projectmanager/speinfo.h
@@ -30,12 +30,13 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef SIMPLEPROEDITORINFO_H
#define SIMPLEPROEDITORINFO_H
-#include <QtGui/QPixmap>
-#include <QVariant>
#include <QtCore/QHash>
+#include <QtCore/QVariant>
+#include <QtGui/QPixmap>
namespace Qt4ProjectManager {
namespace Internal {
@@ -110,7 +111,7 @@ private:
static bool m_listsInitialized;
};
-} //namespace Internal
-} //namespace Qt4ProjectManager
+} // namespace Internal
+} // namespace Qt4ProjectManager
-#endif
+#endif // SIMPLEPROEDITORINFO_H
diff --git a/src/plugins/qt4projectmanager/wizards/consoleappwizard.cpp b/src/plugins/qt4projectmanager/wizards/consoleappwizard.cpp
index 7e41a97404..a49d077d7c 100644
--- a/src/plugins/qt4projectmanager/wizards/consoleappwizard.cpp
+++ b/src/plugins/qt4projectmanager/wizards/consoleappwizard.cpp
@@ -30,7 +30,9 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "consoleappwizard.h"
+
#include "consoleappwizarddialog.h"
#include "qt4projectmanager.h"
#include "qt4projectmanagerconstants.h"
@@ -54,7 +56,6 @@ static const char *mainCppC =
static const char *mainSourceFileC = "main";
namespace Qt4ProjectManager {
-
namespace Internal {
ConsoleAppWizard::ConsoleAppWizard(Core::ICore *core) :
@@ -101,5 +102,5 @@ Core::GeneratedFiles
return Core::GeneratedFiles() << source << profile;
}
-}
-}
+} // namespace Internal
+} // namespace Qt4ProjectManager
diff --git a/src/plugins/qt4projectmanager/wizards/consoleappwizard.h b/src/plugins/qt4projectmanager/wizards/consoleappwizard.h
index 863420d05a..aecf20b667 100644
--- a/src/plugins/qt4projectmanager/wizards/consoleappwizard.h
+++ b/src/plugins/qt4projectmanager/wizards/consoleappwizard.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef CONSOLEAPPWIZARD_H
#define CONSOLEAPPWIZARD_H
diff --git a/src/plugins/qt4projectmanager/wizards/consoleappwizarddialog.cpp b/src/plugins/qt4projectmanager/wizards/consoleappwizarddialog.cpp
index 4affa79202..14965f5018 100644
--- a/src/plugins/qt4projectmanager/wizards/consoleappwizarddialog.cpp
+++ b/src/plugins/qt4projectmanager/wizards/consoleappwizarddialog.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "consoleappwizarddialog.h"
#include "consoleappwizard.h"
#include "modulespage.h"
@@ -86,5 +87,5 @@ QtProjectParameters ConsoleAppWizardDialog::parameters() const
return rc;
}
-}
-}
+} // namespace Internal
+} // namespace Qt4ProjectManager
diff --git a/src/plugins/qt4projectmanager/wizards/consoleappwizarddialog.h b/src/plugins/qt4projectmanager/wizards/consoleappwizarddialog.h
index afaa9c09e2..8e44923557 100644
--- a/src/plugins/qt4projectmanager/wizards/consoleappwizarddialog.h
+++ b/src/plugins/qt4projectmanager/wizards/consoleappwizarddialog.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef CONSOLEAPPWIZARDDIALOG_H
#define CONSOLEAPPWIZARDDIALOG_H
diff --git a/src/plugins/qt4projectmanager/wizards/filespage.cpp b/src/plugins/qt4projectmanager/wizards/filespage.cpp
index 22f4bc582a..58391a7395 100644
--- a/src/plugins/qt4projectmanager/wizards/filespage.cpp
+++ b/src/plugins/qt4projectmanager/wizards/filespage.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "filespage.h"
#include <utils/newclasswidget.h>
@@ -178,8 +179,5 @@ void FilesPage::setFormInputChecked(bool checked)
m_newClassWidget->setFormInputChecked(checked);
}
-
-
-
} // namespace Internal
} // namespace Qt4ProjectManager
diff --git a/src/plugins/qt4projectmanager/wizards/filespage.h b/src/plugins/qt4projectmanager/wizards/filespage.h
index 513c2b81a4..d670dabbec 100644
--- a/src/plugins/qt4projectmanager/wizards/filespage.h
+++ b/src/plugins/qt4projectmanager/wizards/filespage.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef FILESPAGE_H
#define FILESPAGE_H
@@ -40,10 +41,10 @@ class QLabel;
QT_END_NAMESPACE
namespace Core {
- namespace Utils {
- class NewClassWidget;
- }
-}
+namespace Utils {
+class NewClassWidget;
+} // namespace Utils
+} // namespace Core
namespace Qt4ProjectManager {
namespace Internal {
diff --git a/src/plugins/qt4projectmanager/wizards/guiappwizard.cpp b/src/plugins/qt4projectmanager/wizards/guiappwizard.cpp
index c5142d58ee..28712aa4b6 100644
--- a/src/plugins/qt4projectmanager/wizards/guiappwizard.cpp
+++ b/src/plugins/qt4projectmanager/wizards/guiappwizard.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "guiappwizard.h"
#include "guiappwizarddialog.h"
#include "qt4projectmanager.h"
@@ -197,5 +198,6 @@ bool GuiAppWizard::parametrizeTemplate(const QString &templatePath, const QStrin
*target = contents;
return true;
}
-}
-}
+
+} // namespace Internal
+} // namespace Qt4ProjectManager
diff --git a/src/plugins/qt4projectmanager/wizards/guiappwizard.h b/src/plugins/qt4projectmanager/wizards/guiappwizard.h
index c3f24fabdc..6f25688dc8 100644
--- a/src/plugins/qt4projectmanager/wizards/guiappwizard.h
+++ b/src/plugins/qt4projectmanager/wizards/guiappwizard.h
@@ -30,11 +30,10 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef GUIAPPWIZARD_H
#define GUIAPPWIZARD_H
-#include <QtGui/QWizard>
-
#include "qtwizard.h"
namespace Qt4ProjectManager {
diff --git a/src/plugins/qt4projectmanager/wizards/guiappwizarddialog.cpp b/src/plugins/qt4projectmanager/wizards/guiappwizarddialog.cpp
index 457b9fed4c..7b1ba073d3 100644
--- a/src/plugins/qt4projectmanager/wizards/guiappwizarddialog.cpp
+++ b/src/plugins/qt4projectmanager/wizards/guiappwizarddialog.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "guiappwizarddialog.h"
#include "consoleappwizard.h"
#include "modulespage.h"
@@ -45,14 +46,11 @@ enum PageId { IntroPageId, ModulesPageId, FilesPageId };
namespace Qt4ProjectManager {
namespace Internal {
-
-GuiAppParameters::GuiAppParameters() :
- designerForm(true)
+GuiAppParameters::GuiAppParameters()
+ : designerForm(true)
{
-
}
-
GuiAppWizardDialog::GuiAppWizardDialog(const QString &templateName,
const QIcon &icon,
const QList<QWizardPage*> &extensionPages,
@@ -132,5 +130,5 @@ GuiAppParameters GuiAppWizardDialog::parameters() const
return rc;
}
-}
-}
+} // namespace Internal
+} // namespace Qt4ProjectManager
diff --git a/src/plugins/qt4projectmanager/wizards/guiappwizarddialog.h b/src/plugins/qt4projectmanager/wizards/guiappwizarddialog.h
index a2e6c89171..1ca5b76ec7 100644
--- a/src/plugins/qt4projectmanager/wizards/guiappwizarddialog.h
+++ b/src/plugins/qt4projectmanager/wizards/guiappwizarddialog.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef GUIAPPWIZARDDIALOG_H
#define GUIAPPWIZARDDIALOG_H
diff --git a/src/plugins/qt4projectmanager/wizards/libraryparameters.cpp b/src/plugins/qt4projectmanager/wizards/libraryparameters.cpp
index 7f981df09b..15e52ce68a 100644
--- a/src/plugins/qt4projectmanager/wizards/libraryparameters.cpp
+++ b/src/plugins/qt4projectmanager/wizards/libraryparameters.cpp
@@ -30,13 +30,14 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "libraryparameters.h"
+#include <utils/codegeneration.h>
+
#include <QtCore/QTextStream>
#include <QtCore/QStringList>
-#include <utils/codegeneration.h>
-
// Contents of the header defining the shared library export.
#define GUARD_VARIABLE "<GUARD>"
#define EXPORT_MACRO_VARIABLE "<EXPORT_MACRO>"
@@ -161,6 +162,6 @@ QString LibraryParameters::generateSharedHeader(const QString &globalHeaderFile
contents.replace(QLatin1String(LIBRARY_MACRO_VARIABLE), QtProjectParameters::libraryMacro(projectTarget));
return contents;
}
-}
-}
+} // namespace Internal
+} // namespace Qt4ProjectManager
diff --git a/src/plugins/qt4projectmanager/wizards/libraryparameters.h b/src/plugins/qt4projectmanager/wizards/libraryparameters.h
index a52f8cc54c..470443bd29 100644
--- a/src/plugins/qt4projectmanager/wizards/libraryparameters.h
+++ b/src/plugins/qt4projectmanager/wizards/libraryparameters.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef LIBRARYPARAMETERS_H
#define LIBRARYPARAMETERS_H
diff --git a/src/plugins/qt4projectmanager/wizards/librarywizard.cpp b/src/plugins/qt4projectmanager/wizards/librarywizard.cpp
index f389725d99..30e7add344 100644
--- a/src/plugins/qt4projectmanager/wizards/librarywizard.cpp
+++ b/src/plugins/qt4projectmanager/wizards/librarywizard.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "librarywizard.h"
#include "librarywizarddialog.h"
#include "qt4projectmanager.h"
@@ -124,5 +125,5 @@ Core::GeneratedFiles LibraryWizard::generateFiles(const QWizard *w,
return rc;
}
-}
-}
+} // namespace Internal
+} // namespace Qt4ProjectManager
diff --git a/src/plugins/qt4projectmanager/wizards/librarywizard.h b/src/plugins/qt4projectmanager/wizards/librarywizard.h
index d2de430c82..94732e5fb6 100644
--- a/src/plugins/qt4projectmanager/wizards/librarywizard.h
+++ b/src/plugins/qt4projectmanager/wizards/librarywizard.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef LIBRARYWIZARD_H
#define LIBRARYWIZARD_H
diff --git a/src/plugins/qt4projectmanager/wizards/librarywizarddialog.cpp b/src/plugins/qt4projectmanager/wizards/librarywizarddialog.cpp
index 4cac5a317a..53972631c6 100644
--- a/src/plugins/qt4projectmanager/wizards/librarywizarddialog.cpp
+++ b/src/plugins/qt4projectmanager/wizards/librarywizarddialog.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "librarywizarddialog.h"
#include "consoleappwizard.h"
#include "modulespage.h"
@@ -264,5 +265,5 @@ LibraryParameters LibraryWizardDialog::libraryParameters() const
return rc;
}
-}
-}
+} // namespace Internal
+} // namespace Qt4ProjectManager
diff --git a/src/plugins/qt4projectmanager/wizards/librarywizarddialog.h b/src/plugins/qt4projectmanager/wizards/librarywizarddialog.h
index c50dd02236..a95dce6986 100644
--- a/src/plugins/qt4projectmanager/wizards/librarywizarddialog.h
+++ b/src/plugins/qt4projectmanager/wizards/librarywizarddialog.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef LIBRARYWIZARDDIALOG_H
#define LIBRARYWIZARDDIALOG_H
diff --git a/src/plugins/qt4projectmanager/wizards/modulespage.cpp b/src/plugins/qt4projectmanager/wizards/modulespage.cpp
index 60518d8d7a..a2b5b3e4f0 100644
--- a/src/plugins/qt4projectmanager/wizards/modulespage.cpp
+++ b/src/plugins/qt4projectmanager/wizards/modulespage.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "modulespage.h"
#include "speinfo.h"
diff --git a/src/plugins/qt4projectmanager/wizards/modulespage.h b/src/plugins/qt4projectmanager/wizards/modulespage.h
index 3733c14420..34552fa6b2 100644
--- a/src/plugins/qt4projectmanager/wizards/modulespage.h
+++ b/src/plugins/qt4projectmanager/wizards/modulespage.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef MODULESPAGE_H
#define MODULESPAGE_H
@@ -62,7 +63,7 @@ private:
QString modules(bool selected = true) const;
};
-} //namespace Internal
-} //namespace Qt4ProjectManager
+} // namespace Internal
+} // namespace Qt4ProjectManager
-#endif
+#endif // MODULESPAGE_H
diff --git a/src/plugins/qt4projectmanager/wizards/qtprojectparameters.cpp b/src/plugins/qt4projectmanager/wizards/qtprojectparameters.cpp
index 2dd10700fe..eca41422ad 100644
--- a/src/plugins/qt4projectmanager/wizards/qtprojectparameters.cpp
+++ b/src/plugins/qt4projectmanager/wizards/qtprojectparameters.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "qtprojectparameters.h"
#include <QtCore/QTextStream>
@@ -42,10 +43,10 @@ namespace Qt4ProjectManager {
namespace Internal {
// ----------- QtProjectParameters
-QtProjectParameters::QtProjectParameters() :
- type(ConsoleApp)
+QtProjectParameters::QtProjectParameters()
+ : type(ConsoleApp)
{
- }
+}
QString QtProjectParameters::projectPath() const
{
@@ -122,7 +123,5 @@ QString QtProjectParameters::libraryMacro(const QString &projectName)
return createMacro(projectName, QLatin1String("_LIBRARY"));
}
-
-
-}
-}
+} // namespace Internal
+} // namespace Qt4ProjectManager
diff --git a/src/plugins/qt4projectmanager/wizards/qtprojectparameters.h b/src/plugins/qt4projectmanager/wizards/qtprojectparameters.h
index f7fe314d2a..1b5186526f 100644
--- a/src/plugins/qt4projectmanager/wizards/qtprojectparameters.h
+++ b/src/plugins/qt4projectmanager/wizards/qtprojectparameters.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef QTPROJECTPARAMETERS_H
#define QTPROJECTPARAMETERS_H
diff --git a/src/plugins/qt4projectmanager/wizards/qtwizard.cpp b/src/plugins/qt4projectmanager/wizards/qtwizard.cpp
index 381e6e8fef..86c9c2a790 100644
--- a/src/plugins/qt4projectmanager/wizards/qtwizard.cpp
+++ b/src/plugins/qt4projectmanager/wizards/qtwizard.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "qtwizard.h"
#include "qt4project.h"
#include "qt4projectmanagerconstants.h"
diff --git a/src/plugins/qt4projectmanager/wizards/qtwizard.h b/src/plugins/qt4projectmanager/wizards/qtwizard.h
index 5097a84727..1ae6ce0dd5 100644
--- a/src/plugins/qt4projectmanager/wizards/qtwizard.h
+++ b/src/plugins/qt4projectmanager/wizards/qtwizard.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef QTWIZARD_H
#define QTWIZARD_H
diff --git a/src/plugins/qtestlib/qtestlibplugin.h b/src/plugins/qtestlib/qtestlibplugin.h
index 9d44c389fe..bbb4bb2683 100644
--- a/src/plugins/qtestlib/qtestlibplugin.h
+++ b/src/plugins/qtestlib/qtestlibplugin.h
@@ -30,11 +30,13 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef QTESTLIBPLUGIN_H
#define QTESTLIBPLUGIN_H
#include <coreplugin/ioutputpane.h>
#include <projectexplorer/ProjectExplorerInterfaces>
+
#include <QPixmap>
#include <QStandardItem>
#include <QWidget>
diff --git a/src/plugins/qtscripteditor/qtscripteditor.cpp b/src/plugins/qtscripteditor/qtscripteditor.cpp
index a6f812f65b..fa10cdd510 100644
--- a/src/plugins/qtscripteditor/qtscripteditor.cpp
+++ b/src/plugins/qtscripteditor/qtscripteditor.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "qtscripteditor.h"
#include "qtscripteditorconstants.h"
#include "qtscripthighlighter.h"
diff --git a/src/plugins/qtscripteditor/qtscripteditor.h b/src/plugins/qtscripteditor/qtscripteditor.h
index 1f3f776c9a..1964ddea85 100644
--- a/src/plugins/qtscripteditor/qtscripteditor.h
+++ b/src/plugins/qtscripteditor/qtscripteditor.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef QTSCRIPTDITORW_H
#define QTSCRIPTDITORW_H
diff --git a/src/plugins/qtscripteditor/qtscripteditoractionhandler.cpp b/src/plugins/qtscripteditor/qtscripteditoractionhandler.cpp
index 001cf259a9..971ea9d491 100644
--- a/src/plugins/qtscripteditor/qtscripteditoractionhandler.cpp
+++ b/src/plugins/qtscripteditor/qtscripteditoractionhandler.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "qtscripteditoractionhandler.h"
#include "qtscripteditorconstants.h"
#include "qtscripteditor.h"
diff --git a/src/plugins/qtscripteditor/qtscripteditoractionhandler.h b/src/plugins/qtscripteditor/qtscripteditoractionhandler.h
index 06bf412a15..e5fb11c136 100644
--- a/src/plugins/qtscripteditor/qtscripteditoractionhandler.h
+++ b/src/plugins/qtscripteditor/qtscripteditoractionhandler.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef QTSCRIPTDITORACTIONHANDLER_H
#define QTSCRIPTDITORACTIONHANDLER_H
diff --git a/src/plugins/qtscripteditor/qtscripteditorconstants.h b/src/plugins/qtscripteditor/qtscripteditorconstants.h
index ceecb830da..9998dd4c27 100644
--- a/src/plugins/qtscripteditor/qtscripteditorconstants.h
+++ b/src/plugins/qtscripteditor/qtscripteditorconstants.h
@@ -30,17 +30,21 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef QTSCRIPTEDITOR_CONSTANTS_H
#define QTSCRIPTEDITOR_CONSTANTS_H
namespace QtScriptEditor {
namespace Constants {
+
const char * const M_CONTEXT = "Qt Script Editor.ContextMenu";
const char * const RUN = "Qt Script Editor.Run";
const char * const RUN_SEP = "Qt Script Editor.Run.Separator";
const char * const C_QTSCRIPTEDITOR = "Qt Script Editor";
+
const char * const C_QTSCRIPTEDITOR_MIMETYPE = "application/javascript";
-}
-}
-#endif //QTSCRIPTEDITOR_CONSTANTS_H
+} // namespace Constants
+} // namespace QtScriptEditor
+
+#endif // QTSCRIPTEDITOR_CONSTANTS_H
diff --git a/src/plugins/qtscripteditor/qtscripteditorfactory.cpp b/src/plugins/qtscripteditor/qtscripteditorfactory.cpp
index 805256f407..e8e7f64018 100644
--- a/src/plugins/qtscripteditor/qtscripteditorfactory.cpp
+++ b/src/plugins/qtscripteditor/qtscripteditorfactory.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "qtscripteditorfactory.h"
#include "qtscripteditor.h"
#include "qtscripteditoractionhandler.h"
diff --git a/src/plugins/qtscripteditor/qtscripteditorfactory.h b/src/plugins/qtscripteditor/qtscripteditorfactory.h
index ece703ad63..c8442daea3 100644
--- a/src/plugins/qtscripteditor/qtscripteditorfactory.h
+++ b/src/plugins/qtscripteditor/qtscripteditorfactory.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef RQTSCRIPTEDITORFACTORY_H
#define RQTSCRIPTEDITORFACTORY_H
diff --git a/src/plugins/qtscripteditor/qtscripteditorplugin.cpp b/src/plugins/qtscripteditor/qtscripteditorplugin.cpp
index abf9e415a7..0cc69b82c4 100644
--- a/src/plugins/qtscripteditor/qtscripteditorplugin.cpp
+++ b/src/plugins/qtscripteditor/qtscripteditorplugin.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "qtscripteditorplugin.h"
#include "qtscripteditorconstants.h"
#include "qtscripteditorfactory.h"
diff --git a/src/plugins/qtscripteditor/qtscripteditorplugin.h b/src/plugins/qtscripteditor/qtscripteditorplugin.h
index 5d451af05e..cd7a336564 100644
--- a/src/plugins/qtscripteditor/qtscripteditorplugin.h
+++ b/src/plugins/qtscripteditor/qtscripteditorplugin.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef QTSCRIPTEDITORPLUGIN_H
#define QTSCRIPTEDITORPLUGIN_H
diff --git a/src/plugins/qtscripteditor/qtscripthighlighter.cpp b/src/plugins/qtscripteditor/qtscripthighlighter.cpp
index 0bd40d7658..b362f6a2ad 100644
--- a/src/plugins/qtscripteditor/qtscripthighlighter.cpp
+++ b/src/plugins/qtscripteditor/qtscripthighlighter.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "qtscripthighlighter.h"
namespace QtScriptEditor {
diff --git a/src/plugins/qtscripteditor/qtscripthighlighter.h b/src/plugins/qtscripteditor/qtscripthighlighter.h
index ce1dfb5729..374116e089 100644
--- a/src/plugins/qtscripteditor/qtscripthighlighter.h
+++ b/src/plugins/qtscripteditor/qtscripthighlighter.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef QTSCRIPTSYNTAXHIGHLIGHTER_H
#define QTSCRIPTSYNTAXHIGHLIGHTER_H
diff --git a/src/plugins/quickopen/basefilefilter.cpp b/src/plugins/quickopen/basefilefilter.cpp
index 5cfb3406a3..ca56535063 100644
--- a/src/plugins/quickopen/basefilefilter.cpp
+++ b/src/plugins/quickopen/basefilefilter.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "basefilefilter.h"
#include <coreplugin/editormanager/editormanager.h>
diff --git a/src/plugins/quickopen/basefilefilter.h b/src/plugins/quickopen/basefilefilter.h
index 433674aeba..e454b6b07e 100644
--- a/src/plugins/quickopen/basefilefilter.h
+++ b/src/plugins/quickopen/basefilefilter.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef BASEFILEFILTER_H
#define BASEFILEFILTER_H
diff --git a/src/plugins/quickopen/directoryfilter.cpp b/src/plugins/quickopen/directoryfilter.cpp
index 74f4b40a81..afc22af054 100644
--- a/src/plugins/quickopen/directoryfilter.cpp
+++ b/src/plugins/quickopen/directoryfilter.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "directoryfilter.h"
#include <QtCore/QDir>
diff --git a/src/plugins/quickopen/directoryfilter.h b/src/plugins/quickopen/directoryfilter.h
index c2f249df0e..c283dfe33f 100644
--- a/src/plugins/quickopen/directoryfilter.h
+++ b/src/plugins/quickopen/directoryfilter.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef DIRECTORYFILTER_H
#define DIRECTORYFILTER_H
diff --git a/src/plugins/quickopen/directoryparser.cpp b/src/plugins/quickopen/directoryparser.cpp
index c1a467c22b..5a420e3505 100644
--- a/src/plugins/quickopen/directoryparser.cpp
+++ b/src/plugins/quickopen/directoryparser.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "directoryparser.h"
#include "quickopenplugin.h"
diff --git a/src/plugins/quickopen/directoryparser.h b/src/plugins/quickopen/directoryparser.h
index 54ace92bef..13a0cbc5ef 100644
--- a/src/plugins/quickopen/directoryparser.h
+++ b/src/plugins/quickopen/directoryparser.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef DIRECTORYPARSER_H
#define DIRECTORYPARSER_H
@@ -71,7 +72,7 @@ private:
QSet<QString> m_runBlackList;
};
-} //namespace Internal
-} //namespace QuickOpen
+} // namespace Internal
+} // namespace QuickOpen
#endif // DIRECTORYPARSER_H
diff --git a/src/plugins/quickopen/filesystemfilter.cpp b/src/plugins/quickopen/filesystemfilter.cpp
index b6ce510450..8265f6a07e 100644
--- a/src/plugins/quickopen/filesystemfilter.cpp
+++ b/src/plugins/quickopen/filesystemfilter.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "filesystemfilter.h"
#include "quickopentoolwindow.h"
diff --git a/src/plugins/quickopen/filesystemfilter.h b/src/plugins/quickopen/filesystemfilter.h
index 1489a7e8ca..0e895a45aa 100644
--- a/src/plugins/quickopen/filesystemfilter.h
+++ b/src/plugins/quickopen/filesystemfilter.h
@@ -30,24 +30,21 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef FILESYSTEMFILTER_H
#define FILESYSTEMFILTER_H
#include "iquickopenfilter.h"
#include "ui_filesystemfilter.h"
+#include <coreplugin/icore.h>
+#include <coreplugin/editormanager/editormanager.h>
+
#include <QtCore/QString>
#include <QtCore/QList>
#include <QtCore/QByteArray>
#include <QtCore/QFutureInterface>
-#include <coreplugin/icore.h>
-#include <coreplugin/editormanager/editormanager.h>
-
-QT_BEGIN_NAMESPACE
-class QWidget;
-QT_END_NAMESPACE
-
namespace QuickOpen {
namespace Internal {
diff --git a/src/plugins/quickopen/iquickopenfilter.cpp b/src/plugins/quickopen/iquickopenfilter.cpp
index 1361ab2403..ad6441ca28 100644
--- a/src/plugins/quickopen/iquickopenfilter.cpp
+++ b/src/plugins/quickopen/iquickopenfilter.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "iquickopenfilter.h"
#include <QtGui/QBoxLayout>
diff --git a/src/plugins/quickopen/iquickopenfilter.h b/src/plugins/quickopen/iquickopenfilter.h
index 00fa104b3e..376b0d0fe9 100644
--- a/src/plugins/quickopen/iquickopenfilter.h
+++ b/src/plugins/quickopen/iquickopenfilter.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef IQUICKOPENFILTER_H
#define IQUICKOPENFILTER_H
diff --git a/src/plugins/quickopen/opendocumentsfilter.cpp b/src/plugins/quickopen/opendocumentsfilter.cpp
index 8f833c9823..0ee4ad8e98 100644
--- a/src/plugins/quickopen/opendocumentsfilter.cpp
+++ b/src/plugins/quickopen/opendocumentsfilter.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "opendocumentsfilter.h"
Q_DECLARE_METATYPE(Core::IEditor*);
diff --git a/src/plugins/quickopen/opendocumentsfilter.h b/src/plugins/quickopen/opendocumentsfilter.h
index e060fc4861..7b24aeeca0 100644
--- a/src/plugins/quickopen/opendocumentsfilter.h
+++ b/src/plugins/quickopen/opendocumentsfilter.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef OPENDOCUMENTSFILTER_H
#define OPENDOCUMENTSFILTER_H
diff --git a/src/plugins/quickopen/quickopen_global.h b/src/plugins/quickopen/quickopen_global.h
index 77c51de2de..5d0c896f56 100644
--- a/src/plugins/quickopen/quickopen_global.h
+++ b/src/plugins/quickopen/quickopen_global.h
@@ -30,18 +30,6 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
-/****************************************************************************
-**
-** Copyright (C) 1992-$THISYEAR$ Trolltech AS. All rights reserved.
-**
-** This file is part of the $MODULE$ of the Qt Toolkit.
-**
-** $LICENSE$
-**
-** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
-** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
-**
-****************************************************************************/
#ifndef QUICKOPEN_GLOBAL_H
#define QUICKOPEN_GLOBAL_H
diff --git a/src/plugins/quickopen/quickopenconstants.h b/src/plugins/quickopen/quickopenconstants.h
index 41228bc752..8ae0380f37 100644
--- a/src/plugins/quickopen/quickopenconstants.h
+++ b/src/plugins/quickopen/quickopenconstants.h
@@ -30,15 +30,18 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef QUICKOPENCONSTANTS_H
#define QUICKOPENCONSTANTS_H
namespace QuickOpen {
namespace Constants {
- const char * const FILTER_OPTIONS_PAGE = "Filters";
- const char * const QUICKOPEN_CATEGORY = "QuickOpen";
- const char * const TASK_INDEX = "QuickOpen.Task.Index";
-}
-}
+
+const char * const FILTER_OPTIONS_PAGE = "Filters";
+const char * const QUICKOPEN_CATEGORY = "QuickOpen";
+const char * const TASK_INDEX = "QuickOpen.Task.Index";
+
+} // namespace Constants
+} // namespace QuickOpen
#endif // QUICKOPENCONSTANTS_H
diff --git a/src/plugins/quickopen/quickopenfiltersfilter.cpp b/src/plugins/quickopen/quickopenfiltersfilter.cpp
index 86daf7b3c1..e8a487c7d9 100644
--- a/src/plugins/quickopen/quickopenfiltersfilter.cpp
+++ b/src/plugins/quickopen/quickopenfiltersfilter.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "quickopenfiltersfilter.h"
#include "quickopenplugin.h"
#include "quickopentoolwindow.h"
diff --git a/src/plugins/quickopen/quickopenfiltersfilter.h b/src/plugins/quickopen/quickopenfiltersfilter.h
index 674b39c104..2e3c1dc906 100644
--- a/src/plugins/quickopen/quickopenfiltersfilter.h
+++ b/src/plugins/quickopen/quickopenfiltersfilter.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef QUICKOPENFILTERSFILTER_H
#define QUICKOPENFILTERSFILTER_H
diff --git a/src/plugins/quickopen/quickopenmanager.cpp b/src/plugins/quickopen/quickopenmanager.cpp
index ad03ba8fef..99e9bcc6f1 100644
--- a/src/plugins/quickopen/quickopenmanager.cpp
+++ b/src/plugins/quickopen/quickopenmanager.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "quickopenmanager.h"
#include "quickopentoolwindow.h"
diff --git a/src/plugins/quickopen/quickopenmanager.h b/src/plugins/quickopen/quickopenmanager.h
index bc2f822078..72b85f72d5 100644
--- a/src/plugins/quickopen/quickopenmanager.h
+++ b/src/plugins/quickopen/quickopenmanager.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef QUICKOPENMANAGER_H
#define QUICKOPENMANAGER_H
diff --git a/src/plugins/quickopen/quickopenplugin.cpp b/src/plugins/quickopen/quickopenplugin.cpp
index f8dea92816..a2956eb3b5 100644
--- a/src/plugins/quickopen/quickopenplugin.cpp
+++ b/src/plugins/quickopen/quickopenplugin.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "quickopenplugin.h"
#include "quickopenfiltersfilter.h"
#include "quickopenmanager.h"
diff --git a/src/plugins/quickopen/quickopenplugin.h b/src/plugins/quickopen/quickopenplugin.h
index 1a5130a5ca..58220368b4 100644
--- a/src/plugins/quickopen/quickopenplugin.h
+++ b/src/plugins/quickopen/quickopenplugin.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef QUICKOPENPLUGIN_H
#define QUICKOPENPLUGIN_H
diff --git a/src/plugins/quickopen/quickopentoolwindow.h b/src/plugins/quickopen/quickopentoolwindow.h
index 935492108b..b4bcbf9172 100644
--- a/src/plugins/quickopen/quickopentoolwindow.h
+++ b/src/plugins/quickopen/quickopentoolwindow.h
@@ -30,14 +30,15 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef QUICKOPENTOOLWINDOW_H
#define QUICKOPENTOOLWINDOW_H
+#include "quickopenplugin.h"
+
#include <QtCore/QEvent>
#include <QtGui/QWidget>
-#include "quickopenplugin.h"
-
QT_BEGIN_NAMESPACE
class QAction;
class QLabel;
diff --git a/src/plugins/quickopen/settingspage.cpp b/src/plugins/quickopen/settingspage.cpp
index b7e3470d15..8fa032ffca 100644
--- a/src/plugins/quickopen/settingspage.cpp
+++ b/src/plugins/quickopen/settingspage.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "settingspage.h"
#include "quickopenplugin.h"
#include "iquickopenfilter.h"
diff --git a/src/plugins/quickopen/settingspage.h b/src/plugins/quickopen/settingspage.h
index eca50a87fb..7acbdadf73 100644
--- a/src/plugins/quickopen/settingspage.h
+++ b/src/plugins/quickopen/settingspage.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef SETTINGSPAGE_H
#define SETTINGSPAGE_H
diff --git a/src/plugins/regexp/regexpplugin.cpp b/src/plugins/regexp/regexpplugin.cpp
index 275e39b98b..42a8601821 100644
--- a/src/plugins/regexp/regexpplugin.cpp
+++ b/src/plugins/regexp/regexpplugin.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "regexpplugin.h"
#include "settings.h"
#include "regexpwindow.h"
diff --git a/src/plugins/regexp/regexpplugin.h b/src/plugins/regexp/regexpplugin.h
index 5d1f0eaa08..4a81ce347e 100644
--- a/src/plugins/regexp/regexpplugin.h
+++ b/src/plugins/regexp/regexpplugin.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef REGEXPPLUGIN_H
#define REGEXPPLUGIN_H
@@ -63,7 +64,7 @@ private:
QPointer<RegExpWindow> m_regexpWindow;
};
-} //namespace Internal
-} //namespace RegExp
+} // namespace Internal
+} // namespace RegExp
-#endif
+#endif // REGEXPPLUGIN_H
diff --git a/src/plugins/regexp/regexpwindow.cpp b/src/plugins/regexp/regexpwindow.cpp
index 57d4345a83..cfa245a1c4 100644
--- a/src/plugins/regexp/regexpwindow.cpp
+++ b/src/plugins/regexp/regexpwindow.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "regexpwindow.h"
#include "settings.h"
diff --git a/src/plugins/regexp/regexpwindow.h b/src/plugins/regexp/regexpwindow.h
index c14217c6a4..73ae07e3ab 100644
--- a/src/plugins/regexp/regexpwindow.h
+++ b/src/plugins/regexp/regexpwindow.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef REGEXPWINDOW_H
#define REGEXPWINDOW_H
@@ -86,7 +87,7 @@ private:
QLineEdit *captureEdits[MaxCaptures];
};
-} //namespace Internal
-} //namespace RegExp
+} // namespace Internal
+} // namespace RegExp
-#endif
+#endif // REGEXPWINDOW_H
diff --git a/src/plugins/regexp/settings.cpp b/src/plugins/regexp/settings.cpp
index 92d9304360..d98795c375 100644
--- a/src/plugins/regexp/settings.cpp
+++ b/src/plugins/regexp/settings.cpp
@@ -30,7 +30,9 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "settings.h"
+
#include <QtCore/QSettings>
static const char *syntaxKey = "Syntax";
@@ -90,5 +92,5 @@ void Settings::toQSettings(QSettings *s) const
s->endGroup();
}
-}
-}
+} // namespace Internal
+} // namespace Settings;
diff --git a/src/plugins/regexp/settings.h b/src/plugins/regexp/settings.h
index 1b6bb292a1..1c1a8a6ce7 100644
--- a/src/plugins/regexp/settings.h
+++ b/src/plugins/regexp/settings.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef REGEXP_SETTINGS_H
#define REGEXP_SETTINGS_H
diff --git a/src/plugins/resourceeditor/resourceeditorconstants.h b/src/plugins/resourceeditor/resourceeditorconstants.h
index 013f3322ca..739afefee7 100644
--- a/src/plugins/resourceeditor/resourceeditorconstants.h
+++ b/src/plugins/resourceeditor/resourceeditorconstants.h
@@ -30,15 +30,18 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef RESOURCEEDITOR_CONSTANTS_H
#define RESOURCEEDITOR_CONSTANTS_H
namespace ResourceEditor {
namespace Constants {
+
const char * const C_RESOURCEEDITOR = "Resource Editor";
const char * const C_RESOURCEWINDOW = "Resourcewindow";
const char * const C_RESOURCE_MIMETYPE = "application/vnd.nokia.xml.qt.resource";
-}
-}
+
+} // namespace Constants
+} // namespace ResourceEditor
#endif // RESOURCEEDITOR_CONSTANTS_H
diff --git a/src/plugins/resourceeditor/resourceeditorfactory.cpp b/src/plugins/resourceeditor/resourceeditorfactory.cpp
index f2ac8c6e18..a849bb0d20 100644
--- a/src/plugins/resourceeditor/resourceeditorfactory.cpp
+++ b/src/plugins/resourceeditor/resourceeditorfactory.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "resourceeditorfactory.h"
#include "resourceeditorw.h"
#include "resourceeditorplugin.h"
diff --git a/src/plugins/resourceeditor/resourceeditorfactory.h b/src/plugins/resourceeditor/resourceeditorfactory.h
index 14725cc87c..e9b50af098 100644
--- a/src/plugins/resourceeditor/resourceeditorfactory.h
+++ b/src/plugins/resourceeditor/resourceeditorfactory.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef RRESOURCEEDITORFACTORY_H
#define RRESOURCEEDITORFACTORY_H
diff --git a/src/plugins/resourceeditor/resourceeditorplugin.cpp b/src/plugins/resourceeditor/resourceeditorplugin.cpp
index f799a7cd73..43ad4ddd90 100644
--- a/src/plugins/resourceeditor/resourceeditorplugin.cpp
+++ b/src/plugins/resourceeditor/resourceeditorplugin.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "resourceeditorplugin.h"
#include "resourceeditorw.h"
#include "resourceeditorconstants.h"
diff --git a/src/plugins/resourceeditor/resourceeditorplugin.h b/src/plugins/resourceeditor/resourceeditorplugin.h
index 2de7431b43..94c7f6054c 100644
--- a/src/plugins/resourceeditor/resourceeditorplugin.h
+++ b/src/plugins/resourceeditor/resourceeditorplugin.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef RESOURCEEDITORPLUGIN_H
#define RESOURCEEDITORPLUGIN_H
diff --git a/src/plugins/resourceeditor/resourceeditorw.cpp b/src/plugins/resourceeditor/resourceeditorw.cpp
index 77afc7b901..7eefdcb772 100644
--- a/src/plugins/resourceeditor/resourceeditorw.cpp
+++ b/src/plugins/resourceeditor/resourceeditorw.cpp
@@ -30,12 +30,16 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "resourceeditorw.h"
#include "resourceeditorplugin.h"
#include "resourceeditorconstants.h"
#include <qrceditor.h>
+#include <coreplugin/icore.h>
+#include <utils/reloadpromptutils.h>
+
#include <QtCore/QTemporaryFile>
#include <QtCore/QFileInfo>
#include <QtCore/QDir>
@@ -43,9 +47,6 @@
#include <QtGui/QMainWindow>
#include <QtGui/QHBoxLayout>
-#include <coreplugin/icore.h>
-#include <utils/reloadpromptutils.h>
-
namespace ResourceEditor {
namespace Internal {
@@ -267,5 +268,5 @@ void ResourceEditorW::onRedo()
m_resourceEditor.data()->onRedo();
}
-}
-}
+} // namespace Internal
+} // namespace ResourceEditor
diff --git a/src/plugins/resourceeditor/resourceeditorw.h b/src/plugins/resourceeditor/resourceeditorw.h
index 603fe54def..ed21cde8a5 100644
--- a/src/plugins/resourceeditor/resourceeditorw.h
+++ b/src/plugins/resourceeditor/resourceeditorw.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef RESOURCEDITORW_H
#define RESOURCEDITORW_H
@@ -140,4 +141,4 @@ public:
} // namespace Internal
} // namespace ResourceEditor
-#endif //RESOURCEDITORW_H
+#endif // RESOURCEDITORW_H
diff --git a/src/plugins/resourceeditor/resourcewizard.cpp b/src/plugins/resourceeditor/resourcewizard.cpp
index c492bdb497..838e1c079b 100644
--- a/src/plugins/resourceeditor/resourcewizard.cpp
+++ b/src/plugins/resourceeditor/resourcewizard.cpp
@@ -30,12 +30,13 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "resourcewizard.h"
#include "resourceeditorw.h"
#include "resourceeditorconstants.h"
-namespace ResourceEditor {
-namespace Internal {
+using namespace ResourceEditor;
+using namespace ResourceEditor::Internal;
ResourceWizard::ResourceWizard(const BaseFileWizardParameters &parameters, Core::ICore *core, QObject *parent) :
Core::StandardFileWizard(parameters, core, parent)
@@ -43,9 +44,9 @@ ResourceWizard::ResourceWizard(const BaseFileWizardParameters &parameters, Core:
}
Core::GeneratedFiles
- ResourceWizard::generateFilesFromPath(const QString &path,
- const QString &name,
- QString * /*errorMessage*/) const
+ResourceWizard::generateFilesFromPath(const QString &path,
+ const QString &name,
+ QString * /*errorMessage*/) const
{
const QString suffix = preferredSuffix(QLatin1String(Constants::C_RESOURCE_MIMETYPE));
const QString fileName = Core::BaseFileWizard::buildFileName(path, name, suffix);
@@ -54,6 +55,3 @@ Core::GeneratedFiles
file.setEditorKind(QLatin1String(Constants::C_RESOURCEEDITOR));
return Core::GeneratedFiles() << file;
}
-
-}
-}
diff --git a/src/plugins/resourceeditor/resourcewizard.h b/src/plugins/resourceeditor/resourcewizard.h
index 4a4e3593d9..5681f64051 100644
--- a/src/plugins/resourceeditor/resourcewizard.h
+++ b/src/plugins/resourceeditor/resourcewizard.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef RESOURCEWIZARD_H
#define RESOURCEWIZARD_H
@@ -43,7 +44,6 @@ class ResourceWizard : public Core::StandardFileWizard
Q_OBJECT
public:
-
typedef Core::BaseFileWizardParameters BaseFileWizardParameters;
explicit ResourceWizard(const BaseFileWizardParameters &parameters, Core::ICore *core, QObject *parent);
diff --git a/src/plugins/snippets/inputwidget.cpp b/src/plugins/snippets/inputwidget.cpp
index 8321313a67..02abe97b37 100644
--- a/src/plugins/snippets/inputwidget.cpp
+++ b/src/plugins/snippets/inputwidget.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include <QtCore/QDebug>
#include <QtGui/QApplication>
#include <QtGui/QLabel>
diff --git a/src/plugins/snippets/inputwidget.h b/src/plugins/snippets/inputwidget.h
index f7b605eccd..59bf51c5e8 100644
--- a/src/plugins/snippets/inputwidget.h
+++ b/src/plugins/snippets/inputwidget.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef INPUTWIDGET_H
#define INPUTWIDGET_H
@@ -64,7 +65,7 @@ private:
QLineEdit *m_lineEdit;
};
-} //namespace Internal
-} //namespace Snippets
+} // namespace Internal
+} // namespace Snippets
#endif // INPUTWIDGET_H
diff --git a/src/plugins/snippets/snippetscompletion.cpp b/src/plugins/snippets/snippetscompletion.cpp
index d35a7d669c..c09759e7f8 100644
--- a/src/plugins/snippets/snippetscompletion.cpp
+++ b/src/plugins/snippets/snippetscompletion.cpp
@@ -30,8 +30,8 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
-#include "snippetscompletion.h"
+#include "snippetscompletion.h"
#include "snippetswindow.h"
#include "snippetspec.h"
#include "snippetsplugin.h"
diff --git a/src/plugins/snippets/snippetscompletion.h b/src/plugins/snippets/snippetscompletion.h
index 005d1a96ac..3bee53ff9d 100644
--- a/src/plugins/snippets/snippetscompletion.h
+++ b/src/plugins/snippets/snippetscompletion.h
@@ -30,16 +30,17 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef SNIPPETSCOMPLETION_H
#define SNIPPETSCOMPLETION_H
+#include <texteditor/icompletioncollector.h>
+
#include <QtCore/QObject>
#include <QtCore/QMap>
#include <QtCore/QDir>
#include <QtGui/QIcon>
-#include <texteditor/icompletioncollector.h>
-
namespace Core {
class ICore;
}
diff --git a/src/plugins/snippets/snippetspec.cpp b/src/plugins/snippets/snippetspec.cpp
index 3aedaf334e..19980f879a 100644
--- a/src/plugins/snippets/snippetspec.cpp
+++ b/src/plugins/snippets/snippetspec.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "snippetspec.h"
#include "persistentsettings.h"
diff --git a/src/plugins/snippets/snippetspec.h b/src/plugins/snippets/snippetspec.h
index ff7b63cd3c..edc5857814 100644
--- a/src/plugins/snippets/snippetspec.h
+++ b/src/plugins/snippets/snippetspec.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef SNIPPETSPEC_H
#define SNIPPETSPEC_H
diff --git a/src/plugins/snippets/snippetsplugin.cpp b/src/plugins/snippets/snippetsplugin.cpp
index 7e90a028c5..caef9bfcea 100644
--- a/src/plugins/snippets/snippetsplugin.cpp
+++ b/src/plugins/snippets/snippetsplugin.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "snippetswindow.h"
#include "snippetscompletion.h"
#include "snippetsplugin.h"
diff --git a/src/plugins/snippets/snippetsplugin.h b/src/plugins/snippets/snippetsplugin.h
index b7855696ad..82af202d38 100644
--- a/src/plugins/snippets/snippetsplugin.h
+++ b/src/plugins/snippets/snippetsplugin.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef SNIPPETS_H
#define SNIPPETS_H
diff --git a/src/plugins/snippets/snippetswindow.cpp b/src/plugins/snippets/snippetswindow.cpp
index d13ce512dd..d549a06cf7 100644
--- a/src/plugins/snippets/snippetswindow.cpp
+++ b/src/plugins/snippets/snippetswindow.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "snippetswindow.h"
#include "snippetspec.h"
#include "inputwidget.h"
diff --git a/src/plugins/snippets/snippetswindow.h b/src/plugins/snippets/snippetswindow.h
index b9ecb190fa..e225e6fb4e 100644
--- a/src/plugins/snippets/snippetswindow.h
+++ b/src/plugins/snippets/snippetswindow.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef SNIPPETSWINDOW_H
#define SNIPPETSWINDOW_H
diff --git a/src/plugins/subversion/annotationhighlighter.cpp b/src/plugins/subversion/annotationhighlighter.cpp
index 1df4a259a2..d8ec2f5932 100644
--- a/src/plugins/subversion/annotationhighlighter.cpp
+++ b/src/plugins/subversion/annotationhighlighter.cpp
@@ -30,10 +30,11 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "annotationhighlighter.h"
-namespace Subversion {
-namespace Internal {
+using namespace Subversion;
+using namespace Subversion::Internal;
SubversionAnnotationHighlighter::SubversionAnnotationHighlighter(const ChangeNumbers &changeNumbers,
QTextDocument *document) :
@@ -47,6 +48,3 @@ QString SubversionAnnotationHighlighter::changeNumber(const QString &block) cons
const int pos = block.indexOf(m_blank);
return pos > 1 ? block.left(pos) : QString();
}
-
-}
-}
diff --git a/src/plugins/subversion/annotationhighlighter.h b/src/plugins/subversion/annotationhighlighter.h
index b1e451aca9..d822d4b65e 100644
--- a/src/plugins/subversion/annotationhighlighter.h
+++ b/src/plugins/subversion/annotationhighlighter.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef ANNOTATIONHIGHLIGHTER_H
#define ANNOTATIONHIGHLIGHTER_H
@@ -52,7 +53,7 @@ private:
const QChar m_blank;
};
-} //namespace Subversion
-} //namespace Internal
+} // namespace Internal
+} // namespace Subversion
-#endif
+#endif // ANNOTATIONHIGHLIGHTER_H
diff --git a/src/plugins/subversion/changenumberdialog.cpp b/src/plugins/subversion/changenumberdialog.cpp
index 9b1861e76e..70e8acf666 100644
--- a/src/plugins/subversion/changenumberdialog.cpp
+++ b/src/plugins/subversion/changenumberdialog.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include <QtGui/QIntValidator>
#include "changenumberdialog.h"
diff --git a/src/plugins/subversion/changenumberdialog.h b/src/plugins/subversion/changenumberdialog.h
index 3765f5ad1c..9a6be9fa04 100644
--- a/src/plugins/subversion/changenumberdialog.h
+++ b/src/plugins/subversion/changenumberdialog.h
@@ -30,13 +30,14 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef CHANGENUMBERDIALOG_H
#define CHANGENUMBERDIALOG_H
-#include <QtGui/QDialog>
-
#include "ui_changenumberdialog.h"
+#include <QtGui/QDialog>
+
namespace Subversion {
namespace Internal {
@@ -49,12 +50,9 @@ public:
private:
Ui::ChangeNumberDialog m_ui;
-
};
-} //namespace Subversion
-} //namespace Internal
-
-#endif
-
+} // namespace Subversion
+} // namespace Internal
+#endif // CHANGENUMBERDIALOG_H
diff --git a/src/plugins/subversion/settingspage.cpp b/src/plugins/subversion/settingspage.cpp
index d59d464567..ab785db796 100644
--- a/src/plugins/subversion/settingspage.cpp
+++ b/src/plugins/subversion/settingspage.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "settingspage.h"
#include "subversionsettings.h"
#include "subversionplugin.h"
diff --git a/src/plugins/subversion/settingspage.h b/src/plugins/subversion/settingspage.h
index a9c493c5ad..f32401b6d9 100644
--- a/src/plugins/subversion/settingspage.h
+++ b/src/plugins/subversion/settingspage.h
@@ -30,23 +30,24 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef SETTINGSPAGE_H
#define SETTINGSPAGE_H
-#include <QtGui/QWidget>
-#include <QtCore/QPointer>
-#include <QtCore/QString>
+#include "ui_settingspage.h"
#include <coreplugin/dialogs/ioptionspage.h>
-#include "ui_settingspage.h"
+#include <QtGui/QWidget>
+#include <QtCore/QPointer>
+#include <QtCore/QString>
QT_BEGIN_NAMESPACE
class QSettings;
QT_END_NAMESPACE
namespace Subversion {
- namespace Internal {
+namespace Internal {
struct SubversionSettings;
@@ -84,7 +85,7 @@ private:
QPointer<SettingsPageWidget> m_widget;
};
- } //namespace Subversion
-} //namespace Internal
+} // namespace Subversion
+} // namespace Internal
#endif // SETTINGSPAGE_H
diff --git a/src/plugins/subversion/subversionconstants.h b/src/plugins/subversion/subversionconstants.h
index 024896f2a8..9445926d83 100644
--- a/src/plugins/subversion/subversionconstants.h
+++ b/src/plugins/subversion/subversionconstants.h
@@ -30,22 +30,25 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef SUBVERSION_CONSTANTS_H
#define SUBVERSION_CONSTANTS_H
namespace Subversion {
- namespace Constants {
- const char * const SUBVERSION_SUBMIT_MIMETYPE = "application/vnd.nokia.text.subversion.submit";
- const char * const SUBVERSIONEDITOR = "Subversion Editor";
- const char * const SUBVERSIONEDITOR_KIND = "Subversion Editor";
- const char * const SUBVERSIONCOMMITEDITOR = "Subversion Commit Editor";
- const char * const SUBVERSIONCOMMITEDITOR_KIND = "Subversion Commit Editor";
- const char * const ICON_SUBMIT = ":/trolltech.subversion/images/submit.png";
- const char * const ICON_DIFF = ":/trolltech.subversion/images/diff.png";
- const char * const SUBMIT_CURRENT = "Nokia.Subversion.SubmitCurrentLog";
- const char * const DIFF_SELECTED = "Nokia.Subversion.DiffSelectedFilesInLog";
- enum { debug = 0 };
- }
-}
+namespace Constants {
+
+const char * const SUBVERSION_SUBMIT_MIMETYPE = "application/vnd.nokia.text.subversion.submit";
+const char * const SUBVERSIONEDITOR = "Subversion Editor";
+const char * const SUBVERSIONEDITOR_KIND = "Subversion Editor";
+const char * const SUBVERSIONCOMMITEDITOR = "Subversion Commit Editor";
+const char * const SUBVERSIONCOMMITEDITOR_KIND = "Subversion Commit Editor";
+const char * const ICON_SUBMIT = ":/trolltech.subversion/images/submit.png";
+const char * const ICON_DIFF = ":/trolltech.subversion/images/diff.png";
+const char * const SUBMIT_CURRENT = "Nokia.Subversion.SubmitCurrentLog";
+const char * const DIFF_SELECTED = "Nokia.Subversion.DiffSelectedFilesInLog";
+enum { debug = 0 };
+
+} // namespace Constants
+} // namespace SubVersion
-#endif
+#endif // SUBVERSION_CONSTANTS_H
diff --git a/src/plugins/subversion/subversioncontrol.cpp b/src/plugins/subversion/subversioncontrol.cpp
index 03db872bd7..ba2a2f2e8e 100644
--- a/src/plugins/subversion/subversioncontrol.cpp
+++ b/src/plugins/subversion/subversioncontrol.cpp
@@ -30,11 +30,12 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "subversioncontrol.h"
#include "subversionplugin.h"
-namespace Subversion {
-namespace Internal {
+using namespace Subversion;
+using namespace Subversion::Internal;
SubversionControl::SubversionControl(SubversionPlugin *plugin) :
m_plugin(plugin)
@@ -66,5 +67,3 @@ QString SubversionControl::findTopLevelForDirectory(const QString &directory) co
{
return m_plugin->findTopLevelForDirectory(directory);
}
-}
-}
diff --git a/src/plugins/subversion/subversioncontrol.h b/src/plugins/subversion/subversioncontrol.h
index 342a5c7344..f293852a3a 100644
--- a/src/plugins/subversion/subversioncontrol.h
+++ b/src/plugins/subversion/subversioncontrol.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef SUBVERSIONCONTROL_H
#define SUBVERSIONCONTROL_H
@@ -37,6 +38,7 @@
namespace Subversion {
namespace Internal {
+
class SubversionPlugin;
// Just a proxy for SubversionPlugin
@@ -55,6 +57,7 @@ private:
SubversionPlugin *m_plugin;
};
-}
-}
-#endif
+} // namespace Internal
+} // namespace Subversion
+
+#endif // SUBVERSIONCONTROL_H
diff --git a/src/plugins/subversion/subversioneditor.cpp b/src/plugins/subversion/subversioneditor.cpp
index a01c3e7ebf..82f8fd5551 100644
--- a/src/plugins/subversion/subversioneditor.cpp
+++ b/src/plugins/subversion/subversioneditor.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "subversioneditor.h"
#include "annotationhighlighter.h"
#include "subversionconstants.h"
@@ -39,8 +40,8 @@
#include <QtCore/QDebug>
#include <QtGui/QTextCursor>
-namespace Subversion {
-namespace Internal {
+using namespace Subversion;
+using namespace Subversion::Internal;
SubversionEditor::SubversionEditor(const VCSBase::VCSBaseEditorParameters *type,
QWidget *parent) :
@@ -135,6 +136,3 @@ QString SubversionEditor::fileNameFromDiffSpecification(const QTextBlock &inBloc
}
return QString();
}
-
-}
-}
diff --git a/src/plugins/subversion/subversioneditor.h b/src/plugins/subversion/subversioneditor.h
index 2ce3bd50aa..b4133890fb 100644
--- a/src/plugins/subversion/subversioneditor.h
+++ b/src/plugins/subversion/subversioneditor.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef SUBVERSIONEDITOR_H
#define SUBVERSIONEDITOR_H
diff --git a/src/plugins/subversion/subversionoutputwindow.cpp b/src/plugins/subversion/subversionoutputwindow.cpp
index 794694dd05..8c3749ff5e 100644
--- a/src/plugins/subversion/subversionoutputwindow.cpp
+++ b/src/plugins/subversion/subversionoutputwindow.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "subversionoutputwindow.h"
#include "subversionplugin.h"
diff --git a/src/plugins/subversion/subversionoutputwindow.h b/src/plugins/subversion/subversionoutputwindow.h
index 2c91a33514..f201beac4f 100644
--- a/src/plugins/subversion/subversionoutputwindow.h
+++ b/src/plugins/subversion/subversionoutputwindow.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef SUBVERSIONOUTPUTWINDOW_H
#define SUBVERSIONOUTPUTWINDOW_H
@@ -40,7 +41,7 @@ class QListWidget;
QT_END_NAMESPACE
namespace Subversion {
- namespace Internal {
+namespace Internal {
class SubversionPlugin;
@@ -78,4 +79,4 @@ private:
} // namespace Subversion
} // namespace Internal
-#endif
+#endif // SUBVERSIONOUTPUTWINDOW_H
diff --git a/src/plugins/subversion/subversionplugin.cpp b/src/plugins/subversion/subversionplugin.cpp
index da480192e8..63c451f85c 100644
--- a/src/plugins/subversion/subversionplugin.cpp
+++ b/src/plugins/subversion/subversionplugin.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "subversionplugin.h"
#include "settingspage.h"
diff --git a/src/plugins/subversion/subversionplugin.h b/src/plugins/subversion/subversionplugin.h
index 957aacdc89..af77baa6ea 100644
--- a/src/plugins/subversion/subversionplugin.h
+++ b/src/plugins/subversion/subversionplugin.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef SUBVERSIONPLUGIN_H
#define SUBVERSIONPLUGIN_H
diff --git a/src/plugins/subversion/subversionsettings.cpp b/src/plugins/subversion/subversionsettings.cpp
index 37bc04ed96..0fb800a533 100644
--- a/src/plugins/subversion/subversionsettings.cpp
+++ b/src/plugins/subversion/subversionsettings.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "subversionsettings.h"
#include <QtCore/QSettings>
@@ -54,8 +55,7 @@ static QString defaultCommand()
return rc;
}
-namespace Subversion {
-namespace Internal {
+using namespace Subversion::Internal;
SubversionSettings::SubversionSettings() :
svnCommand(defaultCommand()),
@@ -126,8 +126,3 @@ QString SubversionSettings::formatArguments(const QStringList &args)
}
return rc;
}
-
-
-}
-}
-
diff --git a/src/plugins/subversion/subversionsettings.h b/src/plugins/subversion/subversionsettings.h
index c9a62432ba..4f4c073a03 100644
--- a/src/plugins/subversion/subversionsettings.h
+++ b/src/plugins/subversion/subversionsettings.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef SUBVERSIONSETTINGS_H
#define SUBVERSIONSETTINGS_H
@@ -43,7 +44,8 @@ namespace Subversion {
namespace Internal {
// Todo: Add user name and password?
-struct SubversionSettings {
+struct SubversionSettings
+{
SubversionSettings();
void fromSettings(QSettings *);
@@ -67,7 +69,8 @@ inline bool operator==(const SubversionSettings &p1, const SubversionSettings &p
{ return p1.equals(p2); }
inline bool operator!=(const SubversionSettings &p1, const SubversionSettings &p2)
{ return !p1.equals(p2); }
-}
-}
-#endif
+} // namespace Internal
+} // namespace Subversion
+
+#endif // SUBVERSIONSETTINGS_H
diff --git a/src/plugins/subversion/subversionsubmiteditor.cpp b/src/plugins/subversion/subversionsubmiteditor.cpp
index c473939391..01aac80a2b 100644
--- a/src/plugins/subversion/subversionsubmiteditor.cpp
+++ b/src/plugins/subversion/subversionsubmiteditor.cpp
@@ -30,12 +30,13 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
+
#include "subversionsubmiteditor.h"
#include <utils/submiteditorwidget.h>
-namespace Subversion {
-namespace Internal {
+using namespace Subversion::Internal;
SubversionSubmitEditor::SubversionSubmitEditor(const VCSBase::VCSBaseSubmitEditorParameters *parameters,
QWidget *parentWidget) :
@@ -58,6 +59,3 @@ QString SubversionSubmitEditor::fileFromStatusLine(const QString &statusLine)
enum { filePos = 7 };
return statusLine.mid(filePos, statusLine.size() - filePos);
}
-
-}
-}
diff --git a/src/plugins/subversion/subversionsubmiteditor.h b/src/plugins/subversion/subversionsubmiteditor.h
index e08655ebdc..efb97dade2 100644
--- a/src/plugins/subversion/subversionsubmiteditor.h
+++ b/src/plugins/subversion/subversionsubmiteditor.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef SUBVERSIONSUBMITEDITOR_H
#define SUBVERSIONSUBMITEDITOR_H
diff --git a/src/plugins/texteditor/basefilefind.cpp b/src/plugins/texteditor/basefilefind.cpp
index b866918282..43606bf205 100644
--- a/src/plugins/texteditor/basefilefind.cpp
+++ b/src/plugins/texteditor/basefilefind.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "basefilefind.h"
#include <coreplugin/stylehelper.h>
diff --git a/src/plugins/texteditor/basefilefind.h b/src/plugins/texteditor/basefilefind.h
index fee6c0e78b..0e3cce643b 100644
--- a/src/plugins/texteditor/basefilefind.h
+++ b/src/plugins/texteditor/basefilefind.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef BASEFILEFIND_H
#define BASEFILEFIND_H
diff --git a/src/plugins/texteditor/basetextdocument.cpp b/src/plugins/texteditor/basetextdocument.cpp
index 4e3c694bf6..81427e7024 100644
--- a/src/plugins/texteditor/basetextdocument.cpp
+++ b/src/plugins/texteditor/basetextdocument.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "basetextdocument.h"
#include "basetexteditor.h"
#include "storagesettings.h"
diff --git a/src/plugins/texteditor/basetextdocument.h b/src/plugins/texteditor/basetextdocument.h
index df6fe58e3e..ee8e5eb427 100644
--- a/src/plugins/texteditor/basetextdocument.h
+++ b/src/plugins/texteditor/basetextdocument.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef BASETEXTDOCUMENT_H
#define BASETEXTDOCUMENT_H
@@ -158,4 +159,4 @@ private:
} // namespace TextEditor
-#endif
+#endif // BASETEXTDOCUMENT_H
diff --git a/src/plugins/texteditor/basetexteditor.cpp b/src/plugins/texteditor/basetexteditor.cpp
index c3d8f23c07..df5fe41080 100644
--- a/src/plugins/texteditor/basetexteditor.cpp
+++ b/src/plugins/texteditor/basetexteditor.cpp
@@ -30,7 +30,9 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "texteditor_global.h"
+
#include "texteditorconstants.h"
#ifndef TEXTEDITOR_STANDALONE
#include "texteditorplugin.h"
diff --git a/src/plugins/texteditor/basetexteditor.h b/src/plugins/texteditor/basetexteditor.h
index 3e61a43fe3..ced2290003 100644
--- a/src/plugins/texteditor/basetexteditor.h
+++ b/src/plugins/texteditor/basetexteditor.h
@@ -30,6 +30,8 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
+
#ifndef BASETEXTEDITOR_H
#define BASETEXTEDITOR_H
diff --git a/src/plugins/texteditor/basetexteditor_p.h b/src/plugins/texteditor/basetexteditor_p.h
index 583717cc10..87d1af0de0 100644
--- a/src/plugins/texteditor/basetexteditor_p.h
+++ b/src/plugins/texteditor/basetexteditor_p.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef BASETEXTEDITOR_P_H
#define BASETEXTEDITOR_P_H
diff --git a/src/plugins/texteditor/basetextmark.cpp b/src/plugins/texteditor/basetextmark.cpp
index 7dc3fd0873..07af357718 100644
--- a/src/plugins/texteditor/basetextmark.cpp
+++ b/src/plugins/texteditor/basetextmark.cpp
@@ -30,10 +30,13 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "basetextmark.h"
+
#include <coreplugin/editormanager/editormanager.h>
#include <extensionsystem/pluginmanager.h>
#include <coreplugin/icore.h>
+
#include <QtCore/QTimer>
using namespace TextEditor;
@@ -42,7 +45,6 @@ using namespace TextEditor::Internal;
BaseTextMark::BaseTextMark()
: m_markableInterface(0), m_internalMark(0), m_init(false)
{
-
}
BaseTextMark::BaseTextMark(const QString &filename, int line)
diff --git a/src/plugins/texteditor/basetextmark.h b/src/plugins/texteditor/basetextmark.h
index 42930a1c16..3e1044d9a7 100644
--- a/src/plugins/texteditor/basetextmark.h
+++ b/src/plugins/texteditor/basetextmark.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef BASETEXTMARK_H
#define BASETEXTMARK_H
@@ -127,6 +128,8 @@ public:
private:
BaseTextMark *m_parent;
};
-}
-}
+
+} // namespace Internal
+} // namespace TextEditor
+
#endif // BASETEXTMARK_H
diff --git a/src/plugins/texteditor/codecselector.cpp b/src/plugins/texteditor/codecselector.cpp
index 26b445d91a..a8ff2e68bc 100644
--- a/src/plugins/texteditor/codecselector.cpp
+++ b/src/plugins/texteditor/codecselector.cpp
@@ -30,10 +30,10 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "codecselector.h"
#include "basetextdocument.h"
-
#include <QtCore/QDebug>
#include <QtCore/QFileInfo>
#include <QtCore/QTextCodec>
@@ -44,22 +44,24 @@
using namespace TextEditor;
using namespace TextEditor::Internal;
-
namespace TextEditor {
- namespace Internal {
-
- /* custom class to make sure the width is wide enough for the
- * contents. Should be easier with Qt. */
- class CodecListWidget : public QListWidget {
- public:
- CodecListWidget(QWidget *parent):QListWidget(parent){}
- QSize sizeHint() const {
- return QListWidget::sizeHint().expandedTo(
- QSize(sizeHintForColumn(0) + verticalScrollBar()->sizeHint().width() + 4, 0));
- }
- };
+namespace Internal {
+
+/* custom class to make sure the width is wide enough for the
+ * contents. Should be easier with Qt. */
+class CodecListWidget : public QListWidget
+{
+public:
+ CodecListWidget(QWidget *parent):QListWidget(parent){}
+ QSize sizeHint() const {
+ return QListWidget::sizeHint().expandedTo(
+ QSize(sizeHintForColumn(0) + verticalScrollBar()->sizeHint().width() + 4, 0));
}
-}
+};
+
+} // namespace Internal
+} // namespace TextEditor
+
CodecSelector::CodecSelector(QWidget *parent, BaseTextDocument *doc)
: QDialog(parent)
@@ -134,8 +136,6 @@ CodecSelector::CodecSelector(QWidget *parent, BaseTextDocument *doc)
updateButtons();
}
-
-
CodecSelector::~CodecSelector()
{
}
@@ -160,13 +160,11 @@ QTextCodec *CodecSelector::selectedCodec() const
return 0;
}
-
CodecSelector::Result CodecSelector::exec()
{
return (Result) QDialog::exec();
}
-
void CodecSelector::buttonClicked(QAbstractButton *button)
{
Result result = Cancel;
diff --git a/src/plugins/texteditor/codecselector.h b/src/plugins/texteditor/codecselector.h
index 8ff0a4b09d..82ba9e515d 100644
--- a/src/plugins/texteditor/codecselector.h
+++ b/src/plugins/texteditor/codecselector.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef CODECSELECTOR_H
#define CODECSELECTOR_H
@@ -75,11 +76,7 @@ private:
QAbstractButton *m_saveButton;
};
-
-
-
-
-}
-}
+} // namespace Internal
+} // namespace TextEditor
#endif // CODECSELECTOR_H
diff --git a/src/plugins/texteditor/completionsupport.cpp b/src/plugins/texteditor/completionsupport.cpp
index 574a5d2b3d..38c017040e 100644
--- a/src/plugins/texteditor/completionsupport.cpp
+++ b/src/plugins/texteditor/completionsupport.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "completionsupport.h"
#include "completionwidget.h"
#include "icompletioncollector.h"
diff --git a/src/plugins/texteditor/completionsupport.h b/src/plugins/texteditor/completionsupport.h
index 1a70204ec1..b43a71aa72 100644
--- a/src/plugins/texteditor/completionsupport.h
+++ b/src/plugins/texteditor/completionsupport.h
@@ -30,10 +30,12 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef COMPLETIONSUPPORT_H
#define COMPLETIONSUPPORT_H
#include <texteditor/texteditor_global.h>
+
#include <QtCore/QObject>
namespace Core { class ICore; }
diff --git a/src/plugins/texteditor/completionwidget.cpp b/src/plugins/texteditor/completionwidget.cpp
index 2d5ca19542..ae296dca55 100644
--- a/src/plugins/texteditor/completionwidget.cpp
+++ b/src/plugins/texteditor/completionwidget.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "completionwidget.h"
#include "completionsupport.h"
#include "icompletioncollector.h"
diff --git a/src/plugins/texteditor/completionwidget.h b/src/plugins/texteditor/completionwidget.h
index 5c11f07ec6..db15d599dc 100644
--- a/src/plugins/texteditor/completionwidget.h
+++ b/src/plugins/texteditor/completionwidget.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef COMPLETIONWIDGET_H
#define COMPLETIONWIDGET_H
diff --git a/src/plugins/texteditor/displaysettings.cpp b/src/plugins/texteditor/displaysettings.cpp
index 3119f18e5e..1d4d7a697b 100644
--- a/src/plugins/texteditor/displaysettings.cpp
+++ b/src/plugins/texteditor/displaysettings.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "displaysettings.h"
#include <QtCore/QSettings>
diff --git a/src/plugins/texteditor/displaysettings.h b/src/plugins/texteditor/displaysettings.h
index feb8993f75..ebf486dc4b 100644
--- a/src/plugins/texteditor/displaysettings.h
+++ b/src/plugins/texteditor/displaysettings.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef DISPLAYSETTINGS_H
#define DISPLAYSETTINGS_H
diff --git a/src/plugins/texteditor/findinfiles.cpp b/src/plugins/texteditor/findinfiles.cpp
index 1945ae0467..55ecd01e5a 100644
--- a/src/plugins/texteditor/findinfiles.cpp
+++ b/src/plugins/texteditor/findinfiles.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "findinfiles.h"
#include <QtDebug>
diff --git a/src/plugins/texteditor/findinfiles.h b/src/plugins/texteditor/findinfiles.h
index 799c8e4bf5..9aeaf57be8 100644
--- a/src/plugins/texteditor/findinfiles.h
+++ b/src/plugins/texteditor/findinfiles.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef FINDINFILES_H
#define FINDINFILES_H
diff --git a/src/plugins/texteditor/fontsettings.cpp b/src/plugins/texteditor/fontsettings.cpp
index 78f55fe542..bbde495f8d 100644
--- a/src/plugins/texteditor/fontsettings.cpp
+++ b/src/plugins/texteditor/fontsettings.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "fontsettings.h"
#include "fontsettingspage.h"
diff --git a/src/plugins/texteditor/fontsettings.h b/src/plugins/texteditor/fontsettings.h
index 53db735d90..486385565d 100644
--- a/src/plugins/texteditor/fontsettings.h
+++ b/src/plugins/texteditor/fontsettings.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef FONTSETTINGS_H
#define FONTSETTINGS_H
diff --git a/src/plugins/texteditor/fontsettingspage.cpp b/src/plugins/texteditor/fontsettingspage.cpp
index b5f84ed47b..0c6043a7c7 100644
--- a/src/plugins/texteditor/fontsettingspage.cpp
+++ b/src/plugins/texteditor/fontsettingspage.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "fontsettingspage.h"
#include "fontsettings.h"
#include "texteditorconstants.h"
diff --git a/src/plugins/texteditor/fontsettingspage.h b/src/plugins/texteditor/fontsettingspage.h
index 19ab0680a3..3a9c280c8a 100644
--- a/src/plugins/texteditor/fontsettingspage.h
+++ b/src/plugins/texteditor/fontsettingspage.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef FONTSETTINGSPAGE_H
#define FONTSETTINGSPAGE_H
diff --git a/src/plugins/texteditor/generalsettingspage.cpp b/src/plugins/texteditor/generalsettingspage.cpp
index 18d63ac5b5..00ce472d66 100644
--- a/src/plugins/texteditor/generalsettingspage.cpp
+++ b/src/plugins/texteditor/generalsettingspage.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "displaysettings.h"
#include "generalsettingspage.h"
#include "storagesettings.h"
diff --git a/src/plugins/texteditor/generalsettingspage.h b/src/plugins/texteditor/generalsettingspage.h
index b1dc25cf3b..968f830978 100644
--- a/src/plugins/texteditor/generalsettingspage.h
+++ b/src/plugins/texteditor/generalsettingspage.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef GENERALSETTINGSPAGE_H
#define GENERALSETTINGSPAGE_H
diff --git a/src/plugins/texteditor/icompletioncollector.h b/src/plugins/texteditor/icompletioncollector.h
index 1ce8a3b007..d04dc6fad4 100644
--- a/src/plugins/texteditor/icompletioncollector.h
+++ b/src/plugins/texteditor/icompletioncollector.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef COMPLETIONCOLLECTORINTERFACE_H
#define COMPLETIONCOLLECTORINTERFACE_H
diff --git a/src/plugins/texteditor/itexteditable.h b/src/plugins/texteditor/itexteditable.h
index 2253bcf214..864c280a3d 100644
--- a/src/plugins/texteditor/itexteditable.h
+++ b/src/plugins/texteditor/itexteditable.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef ITEXTEDITABLE_H
#define ITEXTEDITABLE_H
diff --git a/src/plugins/texteditor/itexteditor.h b/src/plugins/texteditor/itexteditor.h
index 9d6cd57b02..432c3c9c58 100644
--- a/src/plugins/texteditor/itexteditor.h
+++ b/src/plugins/texteditor/itexteditor.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef ITEXTEDITOR_H
#define ITEXTEDITOR_H
diff --git a/src/plugins/texteditor/linenumberfilter.cpp b/src/plugins/texteditor/linenumberfilter.cpp
index 6c1c4f21ff..1dd9e70720 100644
--- a/src/plugins/texteditor/linenumberfilter.cpp
+++ b/src/plugins/texteditor/linenumberfilter.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "linenumberfilter.h"
#include "itexteditor.h"
diff --git a/src/plugins/texteditor/linenumberfilter.h b/src/plugins/texteditor/linenumberfilter.h
index d6ddc00a3b..c1e3a6af8f 100644
--- a/src/plugins/texteditor/linenumberfilter.h
+++ b/src/plugins/texteditor/linenumberfilter.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef LINENUMBERFILTER_H
#define LINENUMBERFILTER_H
diff --git a/src/plugins/texteditor/plaintexteditor.cpp b/src/plugins/texteditor/plaintexteditor.cpp
index bda40d62d3..88267dd53f 100644
--- a/src/plugins/texteditor/plaintexteditor.cpp
+++ b/src/plugins/texteditor/plaintexteditor.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "plaintexteditor.h"
#include "texteditorconstants.h"
#include "texteditorplugin.h"
diff --git a/src/plugins/texteditor/plaintexteditor.h b/src/plugins/texteditor/plaintexteditor.h
index 77665375be..2e8c9b980c 100644
--- a/src/plugins/texteditor/plaintexteditor.h
+++ b/src/plugins/texteditor/plaintexteditor.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef PLAINTEXTEDITOR_H
#define PLAINTEXTEDITOR_H
diff --git a/src/plugins/texteditor/plaintexteditorfactory.cpp b/src/plugins/texteditor/plaintexteditorfactory.cpp
index ffe1194b24..67ceeb9e54 100644
--- a/src/plugins/texteditor/plaintexteditorfactory.cpp
+++ b/src/plugins/texteditor/plaintexteditorfactory.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "plaintexteditor.h"
#include "plaintexteditorfactory.h"
#include "texteditorconstants.h"
diff --git a/src/plugins/texteditor/plaintexteditorfactory.h b/src/plugins/texteditor/plaintexteditorfactory.h
index b3baeb6abb..25e975dbf5 100644
--- a/src/plugins/texteditor/plaintexteditorfactory.h
+++ b/src/plugins/texteditor/plaintexteditorfactory.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef PLAINTEXTEDITORFACTORY_H
#define PLAINTEXTEDITORFACTORY_H
diff --git a/src/plugins/texteditor/storagesettings.cpp b/src/plugins/texteditor/storagesettings.cpp
index dc1c20c760..c940ff641b 100644
--- a/src/plugins/texteditor/storagesettings.cpp
+++ b/src/plugins/texteditor/storagesettings.cpp
@@ -30,7 +30,9 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "storagesettings.h"
+
#include <QSettings>
#include <QString>
diff --git a/src/plugins/texteditor/storagesettings.h b/src/plugins/texteditor/storagesettings.h
index 65ed3f0ffb..a7040dac41 100644
--- a/src/plugins/texteditor/storagesettings.h
+++ b/src/plugins/texteditor/storagesettings.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef STORAGESETTINGS_H
#define STORAGESETTINGS_H
@@ -41,7 +42,8 @@ QT_END_NAMESPACE
namespace TextEditor {
-struct TEXTEDITOR_EXPORT StorageSettings {
+struct TEXTEDITOR_EXPORT StorageSettings
+{
StorageSettings();
void toSettings(const QString &category, QSettings *s) const;
diff --git a/src/plugins/texteditor/tabsettings.cpp b/src/plugins/texteditor/tabsettings.cpp
index cfe0a5c182..f87ab2ac8c 100644
--- a/src/plugins/texteditor/tabsettings.cpp
+++ b/src/plugins/texteditor/tabsettings.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "tabsettings.h"
#include <QtCore/QSettings>
@@ -86,8 +87,6 @@ void TabSettings::fromSettings(const QString &category, const QSettings *s)
m_indentSize = s->value(group + QLatin1String(indentSizeKey), m_indentSize).toInt();
}
-
-
int TabSettings::lineIndentPosition(const QString &text) const
{
int i = 0;
@@ -145,7 +144,6 @@ bool TabSettings::isIndentationClean(const QString &text) const
return true;
}
-
int TabSettings::columnAt(const QString &text, int position) const
{
int column = 0;
diff --git a/src/plugins/texteditor/tabsettings.h b/src/plugins/texteditor/tabsettings.h
index 095d33991f..f639cc6c8b 100644
--- a/src/plugins/texteditor/tabsettings.h
+++ b/src/plugins/texteditor/tabsettings.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef TABSETTINGS_H
#define TABSETTINGS_H
diff --git a/src/plugins/texteditor/textblockiterator.cpp b/src/plugins/texteditor/textblockiterator.cpp
index 27cc28b65e..8581edc627 100644
--- a/src/plugins/texteditor/textblockiterator.cpp
+++ b/src/plugins/texteditor/textblockiterator.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "textblockiterator.h"
#include <QtGui/QTextDocument>
diff --git a/src/plugins/texteditor/textblockiterator.h b/src/plugins/texteditor/textblockiterator.h
index e15d50fa10..22f1e623f1 100644
--- a/src/plugins/texteditor/textblockiterator.h
+++ b/src/plugins/texteditor/textblockiterator.h
@@ -30,8 +30,9 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
-#ifndef _TEXTBLOCKITERATOR_H
-#define _TEXTBLOCKITERATOR_H
+
+#ifndef TEXTBLOCKITERATOR_H
+#define TEXTBLOCKITERATOR_H
#include "texteditor_global.h"
@@ -68,4 +69,4 @@ inline bool operator!=(const TextBlockIterator &i1, const TextBlockIterator &i2)
} // namespace TextEditor
-#endif // _TEXTBLOCKITERATOR_H
+#endif // TEXTBLOCKITERATOR_H
diff --git a/src/plugins/texteditor/texteditor_global.h b/src/plugins/texteditor/texteditor_global.h
index e1d0830d92..4c0fd1a69f 100644
--- a/src/plugins/texteditor/texteditor_global.h
+++ b/src/plugins/texteditor/texteditor_global.h
@@ -30,18 +30,6 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
-/****************************************************************************
-**
-** Copyright (C) 1992-$THISYEAR$ Trolltech AS. All rights reserved.
-**
-** This file is part of the $MODULE$ of the Qt Toolkit.
-**
-** $LICENSE$
-**
-** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
-** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
-**
-****************************************************************************/
#ifndef TEXTEDITOR_GLOBAL_H
#define TEXTEDITOR_GLOBAL_H
diff --git a/src/plugins/texteditor/texteditoractionhandler.cpp b/src/plugins/texteditor/texteditoractionhandler.cpp
index a9a7b5872f..94cdca6cfd 100644
--- a/src/plugins/texteditor/texteditoractionhandler.cpp
+++ b/src/plugins/texteditor/texteditoractionhandler.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "texteditoractionhandler.h"
#include "texteditorconstants.h"
#include "basetexteditor.h"
diff --git a/src/plugins/texteditor/texteditoractionhandler.h b/src/plugins/texteditor/texteditoractionhandler.h
index 5c43bbfde5..79ac67c217 100644
--- a/src/plugins/texteditor/texteditoractionhandler.h
+++ b/src/plugins/texteditor/texteditoractionhandler.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef TEXTEDITORACTIONHANDLER_H
#define TEXTEDITORACTIONHANDLER_H
diff --git a/src/plugins/texteditor/texteditorconstants.h b/src/plugins/texteditor/texteditorconstants.h
index 59240fe03b..8313f61fc3 100644
--- a/src/plugins/texteditor/texteditorconstants.h
+++ b/src/plugins/texteditor/texteditorconstants.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef TEXTEDITORCONSTANTS_H
#define TEXTEDITORCONSTANTS_H
diff --git a/src/plugins/texteditor/texteditorplugin.cpp b/src/plugins/texteditor/texteditorplugin.cpp
index 78ddf91d95..f50d6dacc9 100644
--- a/src/plugins/texteditor/texteditorplugin.cpp
+++ b/src/plugins/texteditor/texteditorplugin.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "texteditorplugin.h"
#include "findinfiles.h"
diff --git a/src/plugins/texteditor/texteditorplugin.h b/src/plugins/texteditor/texteditorplugin.h
index 3999bc9ad5..e5c6a830a7 100644
--- a/src/plugins/texteditor/texteditorplugin.h
+++ b/src/plugins/texteditor/texteditorplugin.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef TEXTEDITORPLUGIN_H
#define TEXTEDITORPLUGIN_H
diff --git a/src/plugins/texteditor/texteditorsettings.cpp b/src/plugins/texteditor/texteditorsettings.cpp
index c539939a2b..3bab32ae0d 100644
--- a/src/plugins/texteditor/texteditorsettings.cpp
+++ b/src/plugins/texteditor/texteditorsettings.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "texteditorsettings.h"
#include "displaysettings.h"
diff --git a/src/plugins/texteditor/texteditorsettings.h b/src/plugins/texteditor/texteditorsettings.h
index b665720f2b..cbb0db1598 100644
--- a/src/plugins/texteditor/texteditorsettings.h
+++ b/src/plugins/texteditor/texteditorsettings.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef TEXTEDITORSETTINGS_H
#define TEXTEDITORSETTINGS_H
diff --git a/src/plugins/texteditor/textfilewizard.cpp b/src/plugins/texteditor/textfilewizard.cpp
index c012ed27b9..aa8e2b7747 100644
--- a/src/plugins/texteditor/textfilewizard.cpp
+++ b/src/plugins/texteditor/textfilewizard.cpp
@@ -30,11 +30,12 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "textfilewizard.h"
#include "basetexteditor.h"
#include "texteditorconstants.h"
-namespace TextEditor {
+using namespace TextEditor;
TextFileWizard::TextFileWizard(const QString &mimeType,
const QString &editorKind,
@@ -59,5 +60,3 @@ Core::GeneratedFiles
file.setEditorKind(m_editorKind);
return Core::GeneratedFiles() << file;
}
-
-}
diff --git a/src/plugins/texteditor/textfilewizard.h b/src/plugins/texteditor/textfilewizard.h
index 8307c2a0f7..d5593d50bd 100644
--- a/src/plugins/texteditor/textfilewizard.h
+++ b/src/plugins/texteditor/textfilewizard.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef TEXTFILEWIZARD_H
#define TEXTFILEWIZARD_H
diff --git a/src/plugins/vcsbase/baseannotationhighlighter.cpp b/src/plugins/vcsbase/baseannotationhighlighter.cpp
index 977b02a26c..5b02bc9ea1 100644
--- a/src/plugins/vcsbase/baseannotationhighlighter.cpp
+++ b/src/plugins/vcsbase/baseannotationhighlighter.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "baseannotationhighlighter.h"
#include <math.h>
@@ -98,5 +99,4 @@ void BaseAnnotationHighlighter::highlightBlock(const QString &text)
setFormat(0, text.length(), it.value());
}
-}
-
+} // namespace VCSBase
diff --git a/src/plugins/vcsbase/baseannotationhighlighter.h b/src/plugins/vcsbase/baseannotationhighlighter.h
index e57e6c8d42..bedd11a12b 100644
--- a/src/plugins/vcsbase/baseannotationhighlighter.h
+++ b/src/plugins/vcsbase/baseannotationhighlighter.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef BASEANNOTATIONHIGHLIGHTER_H
#define BASEANNOTATIONHIGHLIGHTER_H
@@ -71,6 +72,6 @@ private:
BaseAnnotationHighlighterPrivate *m_d;
};
-} //namespace Internal
+} // namespace VCSBase
-#endif
+#endif // BASEANNOTATIONHIGHLIGHTER_H
diff --git a/src/plugins/vcsbase/basevcseditorfactory.cpp b/src/plugins/vcsbase/basevcseditorfactory.cpp
index 9bf575bdb0..28fa74a737 100644
--- a/src/plugins/vcsbase/basevcseditorfactory.cpp
+++ b/src/plugins/vcsbase/basevcseditorfactory.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "basevcseditorfactory.h"
#include "vcsbaseplugin.h"
#include "vcsbaseeditor.h"
diff --git a/src/plugins/vcsbase/basevcseditorfactory.h b/src/plugins/vcsbase/basevcseditorfactory.h
index fcb4a7fdf5..1f01f4fee7 100644
--- a/src/plugins/vcsbase/basevcseditorfactory.h
+++ b/src/plugins/vcsbase/basevcseditorfactory.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef BASEVCSEDITORFACTORY_H
#define BASEVCSEDITORFACTORY_H
@@ -49,6 +50,7 @@ namespace Core {
}
namespace VCSBase {
+
struct BaseVCSEditorFactoryPrivate;
// Base class for editor factories creating instances of VCSBaseEditor
@@ -116,6 +118,8 @@ VCSBaseEditor *VCSEditorFactory<Editor>::createVCSBaseEditor(const VCSBaseEditor
return rc;
}
-}
-#endif
+
+} // namespace VCSBase
+
+#endif // BASEVCSEDITORFACTORY_H
diff --git a/src/plugins/vcsbase/basevcssubmiteditorfactory.cpp b/src/plugins/vcsbase/basevcssubmiteditorfactory.cpp
index 7330c5b800..ff4a9d4b1b 100644
--- a/src/plugins/vcsbase/basevcssubmiteditorfactory.cpp
+++ b/src/plugins/vcsbase/basevcssubmiteditorfactory.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "basevcssubmiteditorfactory.h"
#include "vcsbasesubmiteditor.h"
@@ -38,7 +39,8 @@
namespace VCSBase {
-struct BaseVCSSubmitEditorFactoryPrivate {
+struct BaseVCSSubmitEditorFactoryPrivate
+{
BaseVCSSubmitEditorFactoryPrivate(const VCSBaseSubmitEditorParameters *parameters);
const VCSBaseSubmitEditorParameters *m_parameters;
@@ -86,4 +88,4 @@ Core::IFile *BaseVCSSubmitEditorFactory::open(const QString &fileName)
return 0;
}
-}
+} // namespace VCSBase
diff --git a/src/plugins/vcsbase/basevcssubmiteditorfactory.h b/src/plugins/vcsbase/basevcssubmiteditorfactory.h
index aa33afb8ea..1925317b37 100644
--- a/src/plugins/vcsbase/basevcssubmiteditorfactory.h
+++ b/src/plugins/vcsbase/basevcssubmiteditorfactory.h
@@ -30,8 +30,9 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
-#ifndef VCSBaseBASEEDITORFACTORY_H
-#define VCSBaseBASEEDITORFACTORY_H
+
+#ifndef VCSBASE_BASEEDITORFACTORY_H
+#define VCSBASE_BASEEDITORFACTORY_H
#include "vcsbase_global.h"
@@ -95,6 +96,7 @@ VCSBaseSubmitEditor *VCSSubmitEditorFactory<Editor>::createBaseSubmitEditor(cons
{
return new Editor(parameters, parent);
}
-}
-#endif // VCSBaseBASEEDITOR_H
+} // namespace VCSBase
+
+#endif // VCSBASE_BASEEDITOR_H
diff --git a/src/plugins/vcsbase/diffhighlighter.cpp b/src/plugins/vcsbase/diffhighlighter.cpp
index 802fe75430..60f219842f 100644
--- a/src/plugins/vcsbase/diffhighlighter.cpp
+++ b/src/plugins/vcsbase/diffhighlighter.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "diffhighlighter.h"
#include <QtCore/QDebug>
diff --git a/src/plugins/vcsbase/diffhighlighter.h b/src/plugins/vcsbase/diffhighlighter.h
index b526c6227b..3b3e47ed36 100644
--- a/src/plugins/vcsbase/diffhighlighter.h
+++ b/src/plugins/vcsbase/diffhighlighter.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef DIFFHIGHLIGHTER_H
#define DIFFHIGHLIGHTER_H
@@ -86,6 +87,6 @@ private:
DiffHighlighterPrivate *m_d;
};
-} //namespace VCSBase
+} // namespace VCSBase
#endif // DIFFHIGHLIGHTER_H
diff --git a/src/plugins/vcsbase/submiteditorfile.cpp b/src/plugins/vcsbase/submiteditorfile.cpp
index 71c223d758..4fd9398881 100644
--- a/src/plugins/vcsbase/submiteditorfile.cpp
+++ b/src/plugins/vcsbase/submiteditorfile.cpp
@@ -30,13 +30,13 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "submiteditorfile.h"
-namespace VCSBase {
-namespace Internal {
+using namespace VCSBase;
+using namespace VCSBase::Internal;
-SubmitEditorFile::SubmitEditorFile(const QString &mimeType,
- QObject *parent) :
+SubmitEditorFile::SubmitEditorFile(const QString &mimeType, QObject *parent) :
Core::IFile(parent),
m_mimeType(mimeType),
m_modified(false)
@@ -66,6 +66,3 @@ QString SubmitEditorFile::mimeType() const
{
return m_mimeType;
}
-
-}
-}
diff --git a/src/plugins/vcsbase/submiteditorfile.h b/src/plugins/vcsbase/submiteditorfile.h
index 6bda2f41ed..a3e9704d7c 100644
--- a/src/plugins/vcsbase/submiteditorfile.h
+++ b/src/plugins/vcsbase/submiteditorfile.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef SUBMITEDITORFILE_H
#define SUBMITEDITORFILE_H
@@ -72,6 +73,6 @@ private:
} // namespace Internal
-}
+} // namespace VCSBase
#endif // SUBMITEDITORFILE_H
diff --git a/src/plugins/vcsbase/vcsbase_global.h b/src/plugins/vcsbase/vcsbase_global.h
index 87c4e10b18..f3bc7bac50 100644
--- a/src/plugins/vcsbase/vcsbase_global.h
+++ b/src/plugins/vcsbase/vcsbase_global.h
@@ -30,18 +30,6 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
-/****************************************************************************
-**
-** Copyright (C) 1992-$THISYEAR$ Trolltech AS. All rights reserved.
-**
-** This file is part of the $MODULE$ of the Qt Toolkit.
-**
-** $LICENSE$
-**
-** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
-** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
-**
-****************************************************************************/
#ifndef VCSBASEGLOBAL_H
#define VCSBASEGLOBAL_H
diff --git a/src/plugins/vcsbase/vcsbaseconstants.h b/src/plugins/vcsbase/vcsbaseconstants.h
index fd85579cdb..1a0765c72e 100644
--- a/src/plugins/vcsbase/vcsbaseconstants.h
+++ b/src/plugins/vcsbase/vcsbaseconstants.h
@@ -30,17 +30,18 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
-#ifndef VCSBaseCONSTANTS_H
-#define VCSBaseCONSTANTS_H
+
+#ifndef VCSBASE_CONSTANTS_H
+#define VCSBASE_CONSTANTS_H
namespace VCSBase {
- namespace Constants {
+namespace Constants {
- namespace Internal {
+namespace Internal {
+enum { debug = 0 };
+} // namespace Internal
- enum { debug = 0 };
- } // namespace Internal
- } // namespace Constants
+} // namespace Constants
} // VCSBase
-#endif // VCSBaseCONSTANTS_H
+#endif // VCSBASE_CONSTANTS_H
diff --git a/src/plugins/vcsbase/vcsbaseeditor.cpp b/src/plugins/vcsbase/vcsbaseeditor.cpp
index a2bdd2c74b..dcfe55d195 100644
--- a/src/plugins/vcsbase/vcsbaseeditor.cpp
+++ b/src/plugins/vcsbase/vcsbaseeditor.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "vcsbaseeditor.h"
#include "diffhighlighter.h"
#include "baseannotationhighlighter.h"
@@ -483,4 +484,4 @@ VCSBaseEditor *VCSBaseEditor::getVcsBaseEditor(const Core::IEditor *editor)
return 0;
}
-}
+} // namespace VCSBase
diff --git a/src/plugins/vcsbase/vcsbaseeditor.h b/src/plugins/vcsbase/vcsbaseeditor.h
index 38c18fe9f2..f1de4f1877 100644
--- a/src/plugins/vcsbase/vcsbaseeditor.h
+++ b/src/plugins/vcsbase/vcsbaseeditor.h
@@ -30,8 +30,9 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
-#ifndef VCSBaseBASEEDITOR_H
-#define VCSBaseBASEEDITOR_H
+
+#ifndef VCSBASE_BASEEDITOR_H
+#define VCSBASE_BASEEDITOR_H
#include "vcsbase_global.h"
@@ -168,6 +169,6 @@ private:
VCSBaseEditorPrivate *m_d;
};
-} // namespace Internal
+} // namespace VCSBase
-#endif // VCSBaseBASEEDITOR_H
+#endif // VCSBASE_BASEEDITOR_H
diff --git a/src/plugins/vcsbase/vcsbaseplugin.cpp b/src/plugins/vcsbase/vcsbaseplugin.cpp
index 51ce8472b3..f8a89c1eca 100644
--- a/src/plugins/vcsbase/vcsbaseplugin.cpp
+++ b/src/plugins/vcsbase/vcsbaseplugin.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "vcsbaseplugin.h"
#include "diffhighlighter.h"
diff --git a/src/plugins/vcsbase/vcsbaseplugin.h b/src/plugins/vcsbase/vcsbaseplugin.h
index 81419cd770..3036157e9d 100644
--- a/src/plugins/vcsbase/vcsbaseplugin.h
+++ b/src/plugins/vcsbase/vcsbaseplugin.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef VCSBASEPLUGIN_H
#define VCSBASEPLUGIN_H
diff --git a/src/plugins/vcsbase/vcsbasesubmiteditor.cpp b/src/plugins/vcsbase/vcsbasesubmiteditor.cpp
index dee2df7c42..3960ca6c75 100644
--- a/src/plugins/vcsbase/vcsbasesubmiteditor.cpp
+++ b/src/plugins/vcsbase/vcsbasesubmiteditor.cpp
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "vcsbasesubmiteditor.h"
#include "submiteditorfile.h"
@@ -278,4 +279,4 @@ bool VCSBaseSubmitEditor::setFileContents(const QString &contents)
return true;
}
-}
+} // namespace VCSBase
diff --git a/src/plugins/vcsbase/vcsbasesubmiteditor.h b/src/plugins/vcsbase/vcsbasesubmiteditor.h
index 481cd63d07..796f5c6129 100644
--- a/src/plugins/vcsbase/vcsbasesubmiteditor.h
+++ b/src/plugins/vcsbase/vcsbasesubmiteditor.h
@@ -30,8 +30,9 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
-#ifndef VCSBaseSUBMITEDITOR_H
-#define VCSBaseSUBMITEDITOR_H
+
+#ifndef VCSBASE_SUBMITEDITOR_H
+#define VCSBASE_SUBMITEDITOR_H
#include "vcsbase_global.h"
@@ -141,6 +142,6 @@ private:
VCSBaseSubmitEditorPrivate *m_d;
};
-}
+} // namespace VCSBase
-#endif // VCSBaseSUBMITEDITOR_H
+#endif // VCSBASE_SUBMITEDITOR_H
diff --git a/src/plugins/vcsbase/vcsbasetextdocument.cpp b/src/plugins/vcsbase/vcsbasetextdocument.cpp
index 06b4f7ab6e..9a720f4e07 100644
--- a/src/plugins/vcsbase/vcsbasetextdocument.cpp
+++ b/src/plugins/vcsbase/vcsbasetextdocument.cpp
@@ -30,10 +30,10 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#include "vcsbasetextdocument.h"
-namespace VCSBase {
-namespace Internal {
+using namespace VCSBase::Internal;
VCSBaseTextDocument::VCSBaseTextDocument()
{
@@ -48,6 +48,3 @@ bool VCSBaseTextDocument::isModified() const
{
return false;
}
-
-}
-}
diff --git a/src/plugins/vcsbase/vcsbasetextdocument.h b/src/plugins/vcsbase/vcsbasetextdocument.h
index e6e66edc95..d4a321be45 100644
--- a/src/plugins/vcsbase/vcsbasetextdocument.h
+++ b/src/plugins/vcsbase/vcsbasetextdocument.h
@@ -30,6 +30,7 @@
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
+
#ifndef VCSBASETEXTDOCUMENT_H
#define VCSBASETEXTDOCUMENT_H