forked from qt-creator/qt-creator
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:
@@ -15,4 +15,19 @@
|
||||
<comment>Qt Project feature file</comment>
|
||||
<glob pattern="*.prf"/>
|
||||
</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>
|
||||
|
||||
@@ -51,6 +51,9 @@ ProFileEditorFactory::ProFileEditorFactory(QmakeManager *manager) :
|
||||
addMimeType(QmakeProjectManager::Constants::PROFILE_MIMETYPE);
|
||||
addMimeType(QmakeProjectManager::Constants::PROINCLUDEFILE_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,
|
||||
TextEditor::TextEditorActionHandler::UnCommentSelection
|
||||
| TextEditor::TextEditorActionHandler::JumpToFileUnderCursor);
|
||||
|
||||
@@ -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 PROINCLUDEFILE_MIMETYPE [] = "application/vnd.qt.qmakeproincludefile";
|
||||
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
|
||||
const char RUNQMAKE[] = "Qt4Builder.RunQMake";
|
||||
|
||||
Reference in New Issue
Block a user