forked from qt-creator/qt-creator
QmlDesigner: Rename 'Imports' to 'QML Imports'
Change-Id: Ice57052273ac2e7eef555c9a26a9032098541d8e Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -48,7 +48,7 @@
|
||||
|
||||
\li Open the Qt Quick UI form in the \uicontrol Design mode.
|
||||
|
||||
\li In the \uicontrol Library, select \uicontrol Imports >
|
||||
\li In the \uicontrol Library, select \uicontrol {QML Imports} >
|
||||
\uicontrol {Add Import} > \uicontrol {QtQuick.Extras} to import the
|
||||
\l {Qt Quick Extras} module.
|
||||
|
||||
|
@@ -76,7 +76,7 @@
|
||||
|
||||
\endlist
|
||||
|
||||
Your module should now appear in the \uicontrol Imports tab in the
|
||||
Your module should now appear in the \uicontrol {QML Imports} tab in the
|
||||
\uicontrol Library in the Design mode. Your components should appear in the
|
||||
\uicontrol {QML Types} tab if a valid \c .metainfo file is in place.
|
||||
|
||||
|
@@ -48,7 +48,7 @@
|
||||
applications.
|
||||
|
||||
The \uicontrol {Library} pane lists the available QML types, UI
|
||||
components, assets, and imports.
|
||||
components, assets, and QML imports.
|
||||
|
||||
\image qmldesigner-qml-components.png "QML Components"
|
||||
|
||||
@@ -60,11 +60,11 @@
|
||||
Quick Controls, Dialogs, and Layouts are available for creating user
|
||||
interfaces using Qt Quick 2. The components and controls are based on
|
||||
standard QML types. To view the components and controls in the
|
||||
\uicontrol {Library}, import the component sets in \uicontrol Imports.
|
||||
\uicontrol {Library}, import the component sets in \uicontrol {QML Imports}.
|
||||
|
||||
The \uicontrol {Qt Quick Application} wizards for a particular platform add
|
||||
the import statements automatically. You can remove import statements in
|
||||
\uicontrol Imports
|
||||
\uicontrol {QML Imports}
|
||||
|
||||
\uicontrol {Assets} displays the images and other files that you copy
|
||||
to the project folder (to the same subfolder as the QML files).
|
||||
|
@@ -168,8 +168,8 @@
|
||||
example, if you drew a rectangle, you can export it as a
|
||||
\l Rectangle component.
|
||||
You can provide the import statement of the module where the QML
|
||||
type is defined in the \uicontrol Imports field.
|
||||
\li In the \uicontrol Imports field, enter
|
||||
type is defined in the \uicontrol {QML Imports} field.
|
||||
\li In the \uicontrol {QML Imports} field, enter
|
||||
additional import statements to have them added to the generated QML
|
||||
file. For example, to use Qt Quick Controls 2.3, you need the
|
||||
import statement \c {QtQuick.Controls 2.3} and to use Qt Quick
|
||||
|
@@ -121,7 +121,7 @@ ItemLibraryWidget::ItemLibraryWidget(QWidget *parent) :
|
||||
auto tabBar = new QTabBar(this);
|
||||
tabBar->addTab(tr("QML Types", "Title of library QML types view"));
|
||||
tabBar->addTab(tr("Assets", "Title of library assets view"));
|
||||
tabBar->addTab(tr("Imports", "Title of library imports view"));
|
||||
tabBar->addTab(tr("QML Imports", "Title of QML imports view"));
|
||||
tabBar->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
|
||||
connect(tabBar, &QTabBar::currentChanged, this, &ItemLibraryWidget::setCurrentIndexOfStackedWidget);
|
||||
connect(tabBar, &QTabBar::currentChanged, this, &ItemLibraryWidget::updateSearch);
|
||||
|
Reference in New Issue
Block a user