From ac382b68b7c67af45096cb590fc537b5794e8f27 Mon Sep 17 00:00:00 2001 From: Leena Miettinen Date: Wed, 30 Jan 2019 14:26:56 +0100 Subject: [PATCH] Doc: Show button examples also in Qt Design Studio Manual Use defines to display the correct menu paths to the wizards. Change-Id: I2cd6dff049a674e9646639fa928f7353d97037ac Reviewed-by: Thomas Hartmann --- .../{creator-only => }/qtquick-buttons.qdoc | 10 +++++++++- doc/src/qtquick/qtquick-components.qdoc | 17 +++++++---------- doc/src/qtquick/qtquick-navigator.qdoc | 6 +----- 3 files changed, 17 insertions(+), 16 deletions(-) rename doc/src/qtquick/{creator-only => }/qtquick-buttons.qdoc (97%) diff --git a/doc/src/qtquick/creator-only/qtquick-buttons.qdoc b/doc/src/qtquick/qtquick-buttons.qdoc similarity index 97% rename from doc/src/qtquick/creator-only/qtquick-buttons.qdoc rename to doc/src/qtquick/qtquick-buttons.qdoc index 00a09a7ccca..0f7c5f5235e 100644 --- a/doc/src/qtquick/creator-only/qtquick-buttons.qdoc +++ b/doc/src/qtquick/qtquick-buttons.qdoc @@ -1,6 +1,6 @@ /**************************************************************************** ** -** Copyright (C) 2018 The Qt Company Ltd. +** Copyright (C) 2019 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the Qt Creator documentation. @@ -42,7 +42,11 @@ \list 1 \li Select \uicontrol File > \uicontrol {New File or Project} > + \if defined(qtcreator) \uicontrol Qt > \uicontrol {QML File (Qt Quick 2)} > + \else + \uicontrol {Qt Quick Files} > \uicontrol {Qt Quick File} > + \endif \uicontrol Choose to create a QML file called Button.qml (for example). @@ -147,7 +151,11 @@ \list 1 \li Select \uicontrol File > \uicontrol {New File or Project} > + \if defined(qtcreator) \uicontrol Qt > \uicontrol {QML File (Qt Quick 2)} > + \else + \uicontrol {Qt Quick Files} > \uicontrol {Qt Quick File} > + \endif \uicontrol Choose to create a QML file called Button.qml (for example). diff --git a/doc/src/qtquick/qtquick-components.qdoc b/doc/src/qtquick/qtquick-components.qdoc index 7a83860c722..77e0a8c58a3 100644 --- a/doc/src/qtquick/qtquick-components.qdoc +++ b/doc/src/qtquick/qtquick-components.qdoc @@ -1,6 +1,6 @@ /**************************************************************************** ** -** Copyright (C) 2018 The Qt Company Ltd. +** Copyright (C) 2019 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the Qt Creator documentation. @@ -33,11 +33,7 @@ \contentspage index.html \page quick-components.html \previouspage creator-using-qt-quick-designer.html - \if defined(qtdesignstudio) - \nextpage qtquick-navigator.html - \else \nextpage quick-buttons.html - \endif \title Creating Components @@ -466,15 +462,17 @@ Some ready-made controls, such as a gauge, dial, status indicator, and tumbler, are provided by the \l {Qt Quick Extras} module. - \if defined(qtcreator) \section1 Creating Components in Design Mode \list 1 \li Select \uicontrol File > \uicontrol {New File or Project} > - \uicontrol {Files and Classes} > \uicontrol Qt > - \uicontrol {QML File (Qt Quick 2)} > \uicontrol Choose to create a new .qml - file. + \if defined(qtcreator) + \uicontrol Qt > \uicontrol {QML File (Qt Quick 2)} > + \else + \uicontrol {Qt Quick Files} > \uicontrol {Qt Quick File} > + \endif + \uicontrol Choose to create a new .qml file. \note Components are listed in the \uicontrol {QML Components} section of the \uicontrol Library only if the filename begins with a capital @@ -501,7 +499,6 @@ \li \l{Creating Scalable Buttons and Borders} \endlist - \endif \section1 Moving Within Components diff --git a/doc/src/qtquick/qtquick-navigator.qdoc b/doc/src/qtquick/qtquick-navigator.qdoc index e61e517bac9..0215df96bec 100644 --- a/doc/src/qtquick/qtquick-navigator.qdoc +++ b/doc/src/qtquick/qtquick-navigator.qdoc @@ -1,6 +1,6 @@ /**************************************************************************** ** -** Copyright (C) 2018 The Qt Company Ltd. +** Copyright (C) 2019 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the Qt Creator documentation. @@ -26,11 +26,7 @@ /*! \contentspage {Qt Creator Manual} \page qtquick-navigator.html - \if defined(qtdesignstudio) - \previouspage quick-components.html - \else \previouspage quick-scalable-image.html - \endif \nextpage qtquick-properties.html \title Managing Item Hierarchy