QMake: Open .qmake.cache .stash and .conf in pro file editor

Change-Id: I8b0eebd20962b5f1d527e5fcb50d0781d76617e8
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@digia.com>
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
Eike Ziller
2014-07-09 11:36:39 +02:00
parent 9bc97e53b3
commit 08e6479736
3 changed files with 21 additions and 0 deletions

View File

@@ -15,4 +15,19 @@
<comment>Qt Project feature file</comment> <comment>Qt Project feature file</comment>
<glob pattern="*.prf"/> <glob pattern="*.prf"/>
</mime-type> </mime-type>
<mime-type type="application/vnd.qt.qmakeproconfigurationfile">
<sub-class-of type="text/plain"/>
<comment>Qt Project configuration file</comment>
<glob pattern=".qmake.conf"/>
</mime-type>
<mime-type type="application/vnd.qt.qmakeprocachefile">
<sub-class-of type="text/plain"/>
<comment>Qt Project cache file</comment>
<glob pattern=".qmake.cache"/>
</mime-type>
<mime-type type="application/vnd.qt.qmakeprostashfile">
<sub-class-of type="text/plain"/>
<comment>Qt Project stash file</comment>
<glob pattern=".qmake.stash"/>
</mime-type>
</mime-info> </mime-info>

View File

@@ -51,6 +51,9 @@ ProFileEditorFactory::ProFileEditorFactory(QmakeManager *manager) :
addMimeType(QmakeProjectManager::Constants::PROFILE_MIMETYPE); addMimeType(QmakeProjectManager::Constants::PROFILE_MIMETYPE);
addMimeType(QmakeProjectManager::Constants::PROINCLUDEFILE_MIMETYPE); addMimeType(QmakeProjectManager::Constants::PROINCLUDEFILE_MIMETYPE);
addMimeType(QmakeProjectManager::Constants::PROFEATUREFILE_MIMETYPE); addMimeType(QmakeProjectManager::Constants::PROFEATUREFILE_MIMETYPE);
addMimeType(QmakeProjectManager::Constants::PROCONFIGURATIONFILE_MIMETYPE);
addMimeType(QmakeProjectManager::Constants::PROCACHEFILE_MIMETYPE);
addMimeType(QmakeProjectManager::Constants::PROSTASHFILE_MIMETYPE);
new TextEditor::TextEditorActionHandler(this, Constants::C_PROFILEEDITOR, new TextEditor::TextEditorActionHandler(this, Constants::C_PROFILEEDITOR,
TextEditor::TextEditorActionHandler::UnCommentSelection TextEditor::TextEditorActionHandler::UnCommentSelection
| TextEditor::TextEditorActionHandler::JumpToFileUnderCursor); | TextEditor::TextEditorActionHandler::JumpToFileUnderCursor);

View File

@@ -48,6 +48,9 @@ const char PROFILE_EDITOR_DISPLAY_NAME[] = QT_TRANSLATE_NOOP("OpenWith::Editors"
const char PROFILE_MIMETYPE[] = "application/vnd.qt.qmakeprofile"; const char PROFILE_MIMETYPE[] = "application/vnd.qt.qmakeprofile";
const char PROINCLUDEFILE_MIMETYPE [] = "application/vnd.qt.qmakeproincludefile"; const char PROINCLUDEFILE_MIMETYPE [] = "application/vnd.qt.qmakeproincludefile";
const char PROFEATUREFILE_MIMETYPE [] = "application/vnd.qt.qmakeprofeaturefile"; const char PROFEATUREFILE_MIMETYPE [] = "application/vnd.qt.qmakeprofeaturefile";
const char PROCONFIGURATIONFILE_MIMETYPE [] = "application/vnd.qt.qmakeproconfigurationfile";
const char PROCACHEFILE_MIMETYPE [] = "application/vnd.qt.qmakeprocachefile";
const char PROSTASHFILE_MIMETYPE [] = "application/vnd.qt.qmakeprostashfile";
// Actions // Actions
const char RUNQMAKE[] = "Qt4Builder.RunQMake"; const char RUNQMAKE[] = "Qt4Builder.RunQMake";