Rename qtquickcontrols.conf to qtquickcontrols2.conf
Use the 2-suffix consistently everywhere to avoid any potential confusion with the old controls. Change-Id: I83aa212a15ed78b8694fb7d3db80fc8430aea969 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
This commit is contained in:
parent
05f6b386f9
commit
e358a033d4
|
@ -3,7 +3,7 @@
|
|||
<file>main.qml</file>
|
||||
<file>ContactPage.qml</file>
|
||||
<file>ConversationPage.qml</file>
|
||||
<file>qtquickcontrols.conf</file>
|
||||
<file>qtquickcontrols2.conf</file>
|
||||
<file>ChatToolBar.qml</file>
|
||||
<file>+material/ChatToolBar.qml</file>
|
||||
</qresource>
|
||||
|
|
|
@ -806,7 +806,7 @@ should be very few adjustments necessary when switching styles.
|
|||
Now let's try each style's dark theme. The Default style has no dark theme, as
|
||||
it would add a slight overhead to a style that is designed to be as performant
|
||||
as possible. We'll test out the Material style first, so add an entry to
|
||||
\c qtquickcontrols.conf that tells it to use its dark theme:
|
||||
\c qtquickcontrols2.conf that tells it to use its dark theme:
|
||||
|
||||
\code
|
||||
[material]
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<RCC>
|
||||
<qresource prefix="/">
|
||||
<file>gallery.qml</file>
|
||||
<file>qtquickcontrols.conf</file>
|
||||
<file>qtquickcontrols2.conf</file>
|
||||
<file>images/arrow.png</file>
|
||||
<file>images/arrow@2x.png</file>
|
||||
<file>images/arrow@3x.png</file>
|
||||
|
|
|
@ -45,9 +45,9 @@
|
|||
resources.qrc
|
||||
main.qml
|
||||
+windows/MyPage.qml
|
||||
+windows/qtquickcontrols.conf
|
||||
+windows/qtquickcontrols2.conf
|
||||
+android/MyPage.qml
|
||||
+android/qtquickcontrols.conf
|
||||
+android/qtquickcontrols2.conf
|
||||
\endcode
|
||||
|
||||
In the project above, \c main.qml would import \c Qt.labs.controls, for
|
||||
|
@ -55,7 +55,7 @@
|
|||
that is style-specific is moved out into separate files; just as we've done
|
||||
for \c MyPage.qml.
|
||||
|
||||
The \c +windows/qtquickcontrols.conf file would contain configuration
|
||||
The \c +windows/qtquickcontrols2.conf file would contain configuration
|
||||
options specific to the Universal style:
|
||||
|
||||
\code
|
||||
|
@ -67,7 +67,7 @@
|
|||
Accent=Red
|
||||
\endcode
|
||||
|
||||
The \c +android/qtquickcontrols.conf file would contain configuration
|
||||
The \c +android/qtquickcontrols2.conf file would contain configuration
|
||||
options specific to the Material style:
|
||||
|
||||
\code
|
||||
|
|
|
@ -94,7 +94,7 @@
|
|||
\section2 Configuration file
|
||||
\target qtquickcontrols2-conf
|
||||
|
||||
Qt Quick Controls 2 support a special configuration file, \c :/qtquickcontrols.conf,
|
||||
Qt Quick Controls 2 support a special configuration file, \c :/qtquickcontrols2.conf,
|
||||
that is built into an application's resources.
|
||||
|
||||
The configuration file can specify the preferred style (may be overridden by either
|
||||
|
@ -124,7 +124,7 @@
|
|||
\code
|
||||
<!DOCTYPE RCC><RCC version="1.0">
|
||||
<qresource prefix="/">
|
||||
<file>qtquickcontrols.conf</file>
|
||||
<file>qtquickcontrols2.conf</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
\endcode
|
||||
|
|
|
@ -170,7 +170,7 @@ QQuickStyleAttached::~QQuickStyleAttached()
|
|||
QSharedPointer<QSettings> QQuickStyleAttached::settings(const QString &group)
|
||||
{
|
||||
#ifndef QT_NO_SETTINGS
|
||||
const QString filePath = QStringLiteral(":/qtquickcontrols.conf");
|
||||
const QString filePath = QStringLiteral(":/qtquickcontrols2.conf");
|
||||
if (QFile::exists(filePath)) {
|
||||
QFileSelector selector;
|
||||
QSettings *settings = new QSettings(selector.select(filePath), QSettings::IniFormat);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<!DOCTYPE RCC><RCC version="1.0">
|
||||
<qresource>
|
||||
<file>qtquickcontrols.conf</file>
|
||||
<file>qtquickcontrols2.conf</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<!DOCTYPE RCC><RCC version="1.0">
|
||||
<qresource>
|
||||
<file>qtquickcontrols.conf</file>
|
||||
<file>qtquickcontrols2.conf</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
|
Loading…
Reference in New Issue