diff options
Diffstat (limited to 'src/widgets/kernel/qicon.cpp')
-rw-r--r-- | src/widgets/kernel/qicon.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/widgets/kernel/qicon.cpp b/src/widgets/kernel/qicon.cpp index 9c7f8736f0..448b6a8cfd 100644 --- a/src/widgets/kernel/qicon.cpp +++ b/src/widgets/kernel/qicon.cpp @@ -467,11 +467,11 @@ Q_GLOBAL_STATIC_WITH_ARGS(QFactoryLoader, loader, resource, and then use it, allowing Qt to work out all the required icon styles and sizes. For example: - \snippet doc/src/snippets/code/src_gui_image_qicon.cpp 0 + \snippet code/src_gui_image_qicon.cpp 0 To undo a QIcon, simply set a null icon in its place: - \snippet doc/src/snippets/code/src_gui_image_qicon.cpp 1 + \snippet code/src_gui_image_qicon.cpp 1 Use the QImageReader::supportedImageFormats() and QImageWriter::supportedImageFormats() functions to retrieve a @@ -500,7 +500,7 @@ Q_GLOBAL_STATIC_WITH_ARGS(QFactoryLoader, loader, Provide a method to set a QIcon, and when you draw the icon, choose whichever pixmap is appropriate for the current state of your widget. For example: - \snippet doc/src/snippets/code/src_gui_image_qicon.cpp 2 + \snippet code/src_gui_image_qicon.cpp 2 You might also make use of the \c Active mode, perhaps making your widget \c Active when the mouse is over the widget (see \l @@ -950,12 +950,12 @@ QString QIcon::themeName() To fetch an icon from the current icon theme: - \snippet doc/src/snippets/code/src_gui_image_qicon.cpp 3 + \snippet code/src_gui_image_qicon.cpp 3 Or if you want to provide a guaranteed fallback for platforms that do not support theme icons, you can use the second argument: - \snippet doc/src/snippets/code/src_gui_image_qicon.cpp 4 + \snippet code/src_gui_image_qicon.cpp 4 \note By default, only X11 will support themed icons. In order to use themed icons on Mac and Windows, you will have to bundle a |