Commit 49b44d47 authored by David Faure's avatar David Faure Committed by The Qt Project
Browse files

Update app icon docu from kde3 to both kde4 and kf5


Change-Id: I0dff98aec55b93245ba04f955a9c5f82ef784fe4
Reviewed-by: default avatarFrederik Gladhorn <frederik.gladhorn@digia.com>
Reviewed-by: default avatarJerome Pasion <jerome.pasion@digia.com>
parent 9e399a7d
No related merge requests found
Showing with 14 additions and 7 deletions
...@@ -161,12 +161,16 @@ ...@@ -161,12 +161,16 @@
\section2 K Desktop Environment (KDE) \section2 K Desktop Environment (KDE)
Application icons can be installed for use by all users, or on a per-user basis. Application icons can be installed for use by all users, or on a per-user basis.
A user currently logged into their KDE desktop can discover these locations A user currently logged into their KDE 4 desktop can discover these locations
by using \l{http://developer.kde.org/documentation/other/kde-config.html}{kde-config}, by using kde4-config, for example, by typing the following in a terminal window:
for example, by typing the following in a terminal window:
\snippet snippets/code/doc_src_appicon.qdoc 3 \snippet snippets/code/doc_src_appicon.qdoc 3
Applications using Qt 5 and KDE Frameworks 5 will find their icons in the list
returned by this command:
\snippet snippets/code/doc_src_appicon.qdoc 5
Typically, the list of colon-separated paths printed to stdout includes the Typically, the list of colon-separated paths printed to stdout includes the
user-specific icon path and the system-wide path. Beneath these user-specific icon path and the system-wide path. Beneath these
directories, it should be possible to locate and install icons according directories, it should be possible to locate and install icons according
...@@ -175,11 +179,11 @@ ...@@ -175,11 +179,11 @@
If you are developing exclusively for KDE, you may wish to take If you are developing exclusively for KDE, you may wish to take
advantage of the \link advantage of the \link
http://developer.kde.org/documentation/other/makefile_am_howto.html http://techbase.kde.org/Development/CMake/Addons_for_KDE
KDE build system\endlink to configure your application. This ensures KDE build system\endlink to configure your application. This ensures
that your icons are installed in the appropriate locations for KDE. that your icons are installed in the appropriate locations for KDE.
The KDE developer website is at \l{http://developer.kde.org/}. The KDE developer website is at \l{http://techbase.kde.org/}.
\section2 GNOME \section2 GNOME
......
...@@ -44,10 +44,13 @@ IDI_ICON1 ICON DISCARDABLE "myappico.ico" ...@@ -44,10 +44,13 @@ IDI_ICON1 ICON DISCARDABLE "myappico.ico"
//! [3] //! [3]
kde-config --path icon kde4-config --path icon
//! [3] //! [3]
//! [4] //! [4]
gnome-config --datadir gnome-config --datadir
//! [4] //! [4]
//! [5]
qtpaths --locate-dirs GenericDataLocation icons
//! [5]
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment