Add Design Studio for Linux

Add AppStream data and desktop file for Design Studio.

Change-Id: Icc5cca03a3c0945a2f90b39fdd4c7dcecd0e8d6b
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Marco Bubke
2024-06-17 14:52:53 +02:00
parent 29229773e0
commit b2c85538b1
17 changed files with 86 additions and 12 deletions

View File

@@ -8,6 +8,8 @@ set(IDE_DISPLAY_NAME "Qt Creator") # The IDE display name.
set(IDE_ID "qtcreator") # The IDE id (no spaces, lowercase!)
set(IDE_CASED_ID "QtCreator") # The cased IDE id (no spaces!)
set(IDE_BUNDLE_IDENTIFIER "org.qt-project.${IDE_ID}") # The macOS application bundle identifier.
set(IDE_APP_ID "org.qt-project.${IDE_ID}") # The free desktop application identifier.
set(PROJECT_USER_FILE_EXTENSION .user)
set(IDE_DOC_FILE "qtcreator/qtcreator.qdocconf")
@@ -17,5 +19,5 @@ set(IDE_DOC_FILE_ONLINE "qtcreator/qtcreator-online.qdocconf")
# Should contain qtcreator.ico, qtcreator.xcassets
set(IDE_ICON_PATH "")
# Absolute, or relative to <qtcreator>/src/app
# Should contain images/logo/(16|24|32|48|64|128|256|512)/QtProject-qtcreator.png
# Should contain images/logo/(16|24|32|48|64|128|256|512)/QtProject-${IDE_ID}.png
set(IDE_LOGO_PATH "")

View File

@@ -9,6 +9,7 @@ set(IDE_DISPLAY_NAME "Qt Design Studio") # The IDE display name.
set(IDE_ID "qtdesignstudio") # The IDE id (no spaces, lowercase!)
set(IDE_CASED_ID "QtDesignStudio") # The cased IDE id (no spaces!)
set(IDE_BUNDLE_IDENTIFIER "org.qt-project.${IDE_ID}") # The macOS application bundle identifier.
set(IDE_APP_ID "io.qt.${IDE_ID}") # The free desktop application identifier.
set(PROJECT_USER_FILE_EXTENSION .qtds)
set(IDE_DOC_FILE "qtdesignstudio/qtdesignstudio.qdocconf")

View File

Before

Width:  |  Height:  |  Size: 5.2 KiB

After

Width:  |  Height:  |  Size: 5.2 KiB

View File

Before

Width:  |  Height:  |  Size: 482 B

After

Width:  |  Height:  |  Size: 482 B

View File

Before

Width:  |  Height:  |  Size: 529 B

After

Width:  |  Height:  |  Size: 529 B

View File

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View File

Before

Width:  |  Height:  |  Size: 735 B

After

Width:  |  Height:  |  Size: 735 B

View File

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 24 KiB

View File

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

@@ -6,17 +6,17 @@ if (NOT APPLE AND NOT WIN32)
string(TIMESTAMP timestamp "%Y-%m-%d")
set(DATE_ATTRIBUTE " date=\"${timestamp}\"")
endif()
configure_file(metainfo/org.qt-project.qtcreator.appdata.xml.cmakein metainfo/org.qt-project.qtcreator.appdata.xml)
configure_file(metainfo/${IDE_APP_ID}.appdata.xml.cmakein metainfo/${IDE_APP_ID}.appdata.xml)
install(
DIRECTORY
applications
FILES
applications/${IDE_APP_ID}.desktop
DESTINATION
${CMAKE_INSTALL_DATAROOTDIR}
${CMAKE_INSTALL_DATAROOTDIR}/applications/
)
install(
FILES
${CMAKE_CURRENT_BINARY_DIR}/metainfo/org.qt-project.qtcreator.appdata.xml
${CMAKE_CURRENT_BINARY_DIR}/metainfo/${IDE_APP_ID}.appdata.xml
DESTINATION
${CMAKE_INSTALL_DATAROOTDIR}/metainfo/
)

View File

@@ -0,0 +1,11 @@
[Desktop Entry]
Type=Application
Exec=qtdesignstudio %F
Name=Qt Design Studio
GenericName=UI Designer for Qml applications
X-KDE-StartupNotify=true
Icon=QtProject-qtdesignstudio
StartupWMClass=org.qt-project.qtdesignstudio
Terminal=false
Categories=Development;GUIDesigner;Qt;
MimeType=application/x-qmlproject

View File

@@ -0,0 +1,58 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright (C) 2016 The Qt Company Ltd. Contact: https://www.qt.io/licensing/ -->
<component type="desktop">
<id>io.qt.qtdesignstudio</id>
<name>Qt Design Studio</name>
<developer id="Qt Design Studio team">
<name>Qt Project</name>
</developer>
<summary>UI Designer for Qml applications</summary>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-3.0</project_license>
<description>
<p>
Define the look and feel of the UI from wireframe to final implementation
with preset UI components. Import UI design files from 2D and 3D tools
to Qt Design Studio, which can turn them into code for developers.
</p>
<p>
Qt Design Studio prototyping features bring your designs to life and
simulate and validate interactions and dynamic behavior.
</p>
<p>
You can test, preview, and fine-tune your designs to pixel-perfection live
on the desktop or target device.
</p>
</description>
<launchable type="desktop-id">io.qt.qtdesignstudio.desktop</launchable>
<url type="homepage">https://www.qt.io/ide/</url>
<project_group>Qt</project_group>
<content_rating type="oars-1.1" />
<screenshots>
<screenshot type="default">
<caption>Overview 2D</caption>
<image>https://www.qt.io/hs-fs/hubfs/image-png-Dec-13-2021-02-04-37-16-PM.png</image>
</screenshot>
<screenshot>
<caption>Welcome</caption>
<image>https://www.qt.io/hs-fs/hubfs/welcomescreen.png</image>
</screenshot>
<screenshot>
<caption>Overview 3D</caption>
<image>https://www.qt.io/hs-fs/hubfs/image-png-Feb-28-2022-03-08-54-80-PM.png</image>
</screenshot>
<screenshot>
<caption>Examples</caption>
<image>https://www.qt.io/hs-fs/hubfs/image-png-May-23-2022-12-38-02-61-PM.png</image>
</screenshot>
</screenshots>
<releases>
<release version="${IDE_VERSION_DISPLAY}"${DATE_ATTRIBUTE}>
<description>
<p>Qt Design Studio ${IDE_VERSION_DISPLAY}</p>
</description>
<url>https://www.qt.io/blog/qt-design-studio-${IDE_VERSION_DISPLAY}-released</url>
</release>
</releases>
</component>

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright (C) 2016 The Qt Company Ltd. Contact: https://www.qt.io/licensing/ -->
<component type="desktop">
<id>org.qt-project.qtcreator.desktop</id>
<id>org.qt-project.qtcreator</id>
<name>Qt Creator</name>
<summary>Provides a cross-platform, complete integrated development environment (IDE) for application developers to create applications for multiple platforms and devices</summary>
<metadata_license>CC0-1.0</metadata_license>

View File

@@ -10,7 +10,9 @@ endif()
configure_file(app_logo.qrc.cmakein app_logo_cmake.qrc)
add_qtc_executable(qtcreator
DEFINES IDE_LIBRARY_BASENAME=\"${IDE_LIBRARY_BASE_PATH}\"
DEFINES
IDE_LIBRARY_BASENAME=\"${IDE_LIBRARY_BASE_PATH}\"
IDE_APP_ID=\"${IDE_APP_ID}\"
DEPENDS Aggregation ExtensionSystem Qt::Core Qt::Widgets Utils shared_qtsingleapplication app_version
SOURCES
main.cpp
@@ -156,7 +158,7 @@ if ((NOT WIN32) AND (NOT APPLE))
# install logo
foreach(size 16 24 32 48 64 128 256 512)
install(
FILES ${IDE_LOGO_PATH}/images/logo/${size}/QtProject-qtcreator.png
FILES ${IDE_LOGO_PATH}/images/logo/${size}/QtProject-${IDE_ID}.png
DESTINATION share/icons/hicolor/${size}x${size}/apps
)
endforeach()

View File

@@ -1,6 +1,6 @@
<RCC>
<qresource prefix="/core">
<file alias="images/qtcreatorlogo-big.png">${IDE_LOGO_PATH}/images/logo/128/QtProject-qtcreator.png</file>
<file alias="images/qtcreatorlogo-big@2x.png">${IDE_LOGO_PATH}/images/logo/256/QtProject-qtcreator.png</file>
<file alias="images/qtcreatorlogo-big.png">${IDE_LOGO_PATH}/images/logo/128/QtProject-${IDE_ID}.png</file>
<file alias="images/qtcreatorlogo-big@2x.png">${IDE_LOGO_PATH}/images/logo/256/QtProject-${IDE_ID}.png</file>
</qresource>
</RCC>

View File

@@ -760,7 +760,7 @@ int main(int argc, char **argv)
if (!overrideCodecForLocale.isEmpty())
QTextCodec::setCodecForLocale(QTextCodec::codecForName(overrideCodecForLocale));
app.setDesktopFileName("org.qt-project.qtcreator");
app.setDesktopFileName(IDE_APP_ID);
// Make sure we honor the system's proxy settings
QNetworkProxyFactory::setUseSystemConfiguration(true);