forked from qt-creator/qt-creator
Register .qbs for Qt Creator standalone and fix icon for qml
Task-number: QTCREATORBUG-9150 Change-Id: I5cff954364b04e6cf1003697c7663b52c4a941db Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
This commit is contained in:
@@ -124,6 +124,13 @@ registerWindowsFileTypeExtensions = function()
|
||||
"text/plain",
|
||||
component.qtCreatorBinaryPath + ",6",
|
||||
"ProgId=QtProject.QtCreator.pri");
|
||||
component.addOperation( "RegisterFileType",
|
||||
"qbs",
|
||||
component.qtCreatorBinaryPath + " -client '%1'",
|
||||
"Qbs Project file",
|
||||
"text/plain",
|
||||
component.qtCreatorBinaryPath + ",5",
|
||||
"ProgId=QtProject.QtCreator.qbs");
|
||||
component.addOperation( "RegisterFileType",
|
||||
"qs",
|
||||
component.qtCreatorBinaryPath + " -client '%1'",
|
||||
@@ -136,7 +143,7 @@ registerWindowsFileTypeExtensions = function()
|
||||
component.qtCreatorBinaryPath + " -client '%1'",
|
||||
"Qt Quick Markup language file",
|
||||
"text/plain",
|
||||
component.qtCreatorBinaryPath + ",0",
|
||||
component.qtCreatorBinaryPath + ",7",
|
||||
"ProgId=QtProject.QtCreator.qml");
|
||||
}
|
||||
|
||||
@@ -180,7 +187,7 @@ Component.prototype.createOperations = function()
|
||||
component.addOperation( "InstallIcons", "@TargetDir@/share/icons" );
|
||||
component.addOperation( "CreateDesktopEntry",
|
||||
"QtProject-qtcreator.desktop",
|
||||
"Type=Application\nExec=" + component.qtCreatorBinaryPath + "\nPath=@TargetDir@\nName=Qt Creator\nGenericName=The IDE of choice for Qt development.\nGenericName[de]=Die IDE der Wahl zur Qt Entwicklung\nIcon=QtProject-qtcreator\nTerminal=false\nCategories=Development;IDE;Qt;\nMimeType=text/x-c++src;text/x-c++hdr;text/x-xsrc;application/x-designer;application/vnd.nokia.qt.qmakeprofile;application/vnd.nokia.xml.qt.resource;text/x-qml;"
|
||||
"Type=Application\nExec=" + component.qtCreatorBinaryPath + "\nPath=@TargetDir@\nName=Qt Creator\nGenericName=The IDE of choice for Qt development.\nGenericName[de]=Die IDE der Wahl zur Qt Entwicklung\nIcon=QtProject-qtcreator\nTerminal=false\nCategories=Development;IDE;Qt;\nMimeType=text/x-c++src;text/x-c++hdr;text/x-xsrc;application/x-designer;application/vnd.nokia.qt.qmakeprofile;application/vnd.nokia.xml.qt.resource;text/x-qml;text/x-qt.qml;text/x-qt.qbs;"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,6 +34,20 @@
|
||||
<key>LSHandlerRank</key>
|
||||
<string>Default</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>CFBundleTypeRole</key>
|
||||
<string>Editor</string>
|
||||
<key>CFBundleTypeIconFile</key>
|
||||
<string>profile.icns</string>
|
||||
<key>CFBundleTypeExtensions</key>
|
||||
<array>
|
||||
<string>qbs</string>
|
||||
</array>
|
||||
<key>CFBundleTypeName</key>
|
||||
<string>Qbs Project File</string>
|
||||
<key>LSHandlerRank</key>
|
||||
<string>Default</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>CFBundleTypeRole</key>
|
||||
<string>Editor</string>
|
||||
@@ -84,6 +98,21 @@
|
||||
<key>CFBundleTypeName</key>
|
||||
<string>Qt UI File</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>CFBundleTypeExtensions</key>
|
||||
<array>
|
||||
<string>qml</string>
|
||||
</array>
|
||||
<key>CFBundleTypeName</key>
|
||||
<string>QML File</string>
|
||||
<key>CFBundleTypeOSTypes</key>
|
||||
<array>
|
||||
<string>TEXT</string>
|
||||
<string>utxt</string>
|
||||
</array>
|
||||
<key>CFBundleTypeRole</key>
|
||||
<string>Editor</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>CFBundleTypeExtensions</key>
|
||||
<array>
|
||||
|
||||
Reference in New Issue
Block a user