aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore3
-rw-r--r--examples/quick/calendar/DateTimePicker.qml1
-rw-r--r--examples/quick/calendar/TumblerDelegate.qml2
-rw-r--r--examples/quick/controls/controls.pro3
-rw-r--r--examples/quick/controls/drawer/drawer.pro (renamed from examples/quick/extras/drawer/drawer.pro)0
-rw-r--r--examples/quick/controls/drawer/drawer.qrc (renamed from examples/quick/extras/drawer/drawer.qrc)0
-rw-r--r--examples/quick/controls/drawer/images/arrow.png (renamed from examples/quick/extras/drawer/images/arrow.png)bin2446 -> 2446 bytes
-rw-r--r--examples/quick/controls/drawer/images/qt-logo.png (renamed from examples/quick/extras/drawer/images/qt-logo.png)bin21710 -> 21710 bytes
-rw-r--r--examples/quick/controls/drawer/main.cpp (renamed from examples/quick/extras/drawer/main.cpp)0
-rw-r--r--examples/quick/controls/drawer/main.qml (renamed from examples/quick/extras/drawer/main.qml)1
-rw-r--r--examples/quick/controls/tabs/main.qml1
-rw-r--r--examples/quick/extras/extras.pro3
-rw-r--r--examples/quick/quick.pro3
-rw-r--r--src/imports/controls/Dial.qml (renamed from src/imports/extras/Dial.qml)3
-rw-r--r--src/imports/controls/Drawer.qml (renamed from src/imports/extras/Drawer.qml)3
-rw-r--r--src/imports/controls/SwipeView.qml (renamed from src/imports/extras/SwipeView.qml)4
-rw-r--r--src/imports/controls/Tumbler.qml (renamed from src/imports/extras/Tumbler.qml)3
-rw-r--r--src/imports/controls/controls.pro16
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-dial-background.png (renamed from src/imports/extras/doc/images/qtquickextras2-dial-background.png)bin3286 -> 3286 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-dial-handle.png (renamed from src/imports/extras/doc/images/qtquickextras2-dial-handle.png)bin3538 -> 3538 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-tumbler-background.png (renamed from src/imports/extras/doc/images/qtquickextras2-tumbler-background.png)bin1025 -> 1025 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-tumbler-contentItem.png (renamed from src/imports/extras/doc/images/qtquickextras2-tumbler-contentItem.png)bin1025 -> 1025 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-tumbler-delegate.png (renamed from src/imports/extras/doc/images/qtquickextras2-tumbler-delegate.png)bin1047 -> 1047 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-tumbler-wrap.gif (renamed from src/imports/extras/doc/images/qtquickextras2-tumbler-wrap.gif)bin38931 -> 38931 bytes
-rw-r--r--src/imports/controls/doc/qtquickcontrols2.qdocconf2
-rw-r--r--src/imports/controls/doc/src/qtquickcontrols2-customize.qdoc42
-rw-r--r--src/imports/controls/doc/src/qtquickcontrols2-index.qdoc4
-rw-r--r--src/imports/controls/qquickdial.cpp (renamed from src/imports/extras/qquickdial.cpp)26
-rw-r--r--src/imports/controls/qquickdial_p.h (renamed from src/imports/extras/qquickdial_p.h)2
-rw-r--r--src/imports/controls/qquickdrawer.cpp (renamed from src/imports/extras/qquickdrawer.cpp)2
-rw-r--r--src/imports/controls/qquickdrawer_p.h (renamed from src/imports/extras/qquickdrawer_p.h)2
-rw-r--r--src/imports/controls/qquickswipeview.cpp (renamed from src/imports/extras/qquickswipeview.cpp)10
-rw-r--r--src/imports/controls/qquickswipeview_p.h (renamed from src/imports/extras/qquickswipeview_p.h)2
-rw-r--r--src/imports/controls/qquicktumbler.cpp (renamed from src/imports/extras/qquicktumbler.cpp)18
-rw-r--r--src/imports/controls/qquicktumbler_p.h (renamed from src/imports/extras/qquicktumbler_p.h)2
-rw-r--r--src/imports/controls/qtquickcontrols2plugin.cpp14
-rw-r--r--src/imports/extras/doc/images/.directory4
-rw-r--r--src/imports/extras/doc/qtquickextras2.qdocconf47
-rw-r--r--src/imports/extras/doc/src/qtquickextras2-customize.qdoc82
-rw-r--r--src/imports/extras/doc/src/qtquickextras2-index.qdoc49
-rw-r--r--src/imports/extras/doc/src/qtquickextras2-overview.qdoc53
-rw-r--r--src/imports/extras/doc/src/qtquickextras2.qdoc44
-rw-r--r--src/imports/extras/extras.pri17
-rw-r--r--src/imports/extras/extras.pro23
-rw-r--r--src/imports/extras/plugins.qmltypes67
-rw-r--r--src/imports/extras/qmldir3
-rw-r--r--src/imports/extras/qtquickextras2plugin.cpp74
-rw-r--r--src/imports/imports.pro1
-rw-r--r--tests/auto/auto.pro1
-rw-r--r--tests/auto/controls/data/TumblerDatePicker.qml (renamed from tests/auto/extras/data/TumblerDatePicker.qml)1
-rw-r--r--tests/auto/controls/data/tst_dial.qml (renamed from tests/auto/extras/data/tst_dial.qml)2
-rw-r--r--tests/auto/controls/data/tst_drawer.qml (renamed from tests/auto/extras/data/tst_drawer.qml)2
-rw-r--r--tests/auto/controls/data/tst_swipeview.qml (renamed from tests/auto/extras/data/tst_swipeview.qml)2
-rw-r--r--tests/auto/controls/data/tst_tumbler.qml (renamed from tests/auto/extras/data/tst_tumbler.qml)4
-rw-r--r--tests/auto/extras/extras.pro12
-rw-r--r--tests/auto/extras/tst_extras.cpp38
-rw-r--r--tests/auto/sanity/tst_sanity.cpp1
-rw-r--r--tests/auto/snippets/data/dial/qtquickextras2-dial-background.qml2
-rw-r--r--tests/auto/snippets/data/dial/qtquickextras2-dial-handle.qml2
-rw-r--r--tests/auto/snippets/data/tumbler/qtquickextras2-tumbler-background.qml2
-rw-r--r--tests/auto/snippets/data/tumbler/qtquickextras2-tumbler-contentItem.qml2
-rw-r--r--tests/auto/snippets/data/tumbler/qtquickextras2-tumbler-delegate.qml2
-rw-r--r--tests/benchmarks/creationtime/tst_creationtime.cpp17
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-tumbler-wrap.qml (renamed from tests/manual/gifs/data/qtquickextras2-tumbler-wrap.qml)1
-rw-r--r--tests/manual/gifs/tst_gifs.cpp2
65 files changed, 126 insertions, 603 deletions
diff --git a/.gitignore b/.gitignore
index 07d49650..4fbd6f15 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,12 +9,11 @@
/examples/quick/controls/mirroring/mirroring
/examples/quick/controls/theme/theme
/examples/quick/controls/tabs/tabs
-/examples/quick/extras/drawer/drawer
+/examples/quick/controls/drawer/drawer
/tests/auto/accessibility/tst_accessibility
/tests/auto/applicationwindow/tst_applicationwindow
/tests/auto/controls/tst_controls
-/tests/auto/extras/tst_extras
/tests/auto/sanity/tst_sanity
/tests/auto/snippets/tst_snippets
/tests/benchmarks/creationtime/tst_creationtime
diff --git a/examples/quick/calendar/DateTimePicker.qml b/examples/quick/calendar/DateTimePicker.qml
index 88238048..a3c5df7f 100644
--- a/examples/quick/calendar/DateTimePicker.qml
+++ b/examples/quick/calendar/DateTimePicker.qml
@@ -41,7 +41,6 @@
import QtQuick 2.6
import QtQuick.Calendar 2.0
import QtQuick.Controls 2.0
-import QtQuick.Extras 2.0
Item {
id: dateTimePicker
diff --git a/examples/quick/calendar/TumblerDelegate.qml b/examples/quick/calendar/TumblerDelegate.qml
index 60d71f21..dcfb83e4 100644
--- a/examples/quick/calendar/TumblerDelegate.qml
+++ b/examples/quick/calendar/TumblerDelegate.qml
@@ -39,7 +39,7 @@
****************************************************************************/
import QtQuick 2.6
-import QtQuick.Extras 2.0
+import QtQuick.Controls 2.0
Text {
text: isNaN(modelData) ? modelData : modelData + 1
diff --git a/examples/quick/controls/controls.pro b/examples/quick/controls/controls.pro
index f3b2e617..950309a6 100644
--- a/examples/quick/controls/controls.pro
+++ b/examples/quick/controls/controls.pro
@@ -2,4 +2,5 @@ TEMPLATE = subdirs
SUBDIRS += \
mirroring \
theme \
- tabs
+ tabs \
+ drawer
diff --git a/examples/quick/extras/drawer/drawer.pro b/examples/quick/controls/drawer/drawer.pro
index 8c128054..8c128054 100644
--- a/examples/quick/extras/drawer/drawer.pro
+++ b/examples/quick/controls/drawer/drawer.pro
diff --git a/examples/quick/extras/drawer/drawer.qrc b/examples/quick/controls/drawer/drawer.qrc
index 25cc5cbe..25cc5cbe 100644
--- a/examples/quick/extras/drawer/drawer.qrc
+++ b/examples/quick/controls/drawer/drawer.qrc
diff --git a/examples/quick/extras/drawer/images/arrow.png b/examples/quick/controls/drawer/images/arrow.png
index 4981e0de..4981e0de 100644
--- a/examples/quick/extras/drawer/images/arrow.png
+++ b/examples/quick/controls/drawer/images/arrow.png
Binary files differ
diff --git a/examples/quick/extras/drawer/images/qt-logo.png b/examples/quick/controls/drawer/images/qt-logo.png
index cf350dad..cf350dad 100644
--- a/examples/quick/extras/drawer/images/qt-logo.png
+++ b/examples/quick/controls/drawer/images/qt-logo.png
Binary files differ
diff --git a/examples/quick/extras/drawer/main.cpp b/examples/quick/controls/drawer/main.cpp
index 2abdc16d..2abdc16d 100644
--- a/examples/quick/extras/drawer/main.cpp
+++ b/examples/quick/controls/drawer/main.cpp
diff --git a/examples/quick/extras/drawer/main.qml b/examples/quick/controls/drawer/main.qml
index e45a69d0..45819e6f 100644
--- a/examples/quick/extras/drawer/main.qml
+++ b/examples/quick/controls/drawer/main.qml
@@ -40,7 +40,6 @@
import QtQuick 2.6
import QtQuick.Controls 2.0
-import QtQuick.Extras 2.0
ApplicationWindow {
id: window
diff --git a/examples/quick/controls/tabs/main.qml b/examples/quick/controls/tabs/main.qml
index b5ec03f1..42800236 100644
--- a/examples/quick/controls/tabs/main.qml
+++ b/examples/quick/controls/tabs/main.qml
@@ -39,7 +39,6 @@
****************************************************************************/
import QtQuick 2.6
-import QtQuick.Extras 2.0
import QtQuick.Layouts 1.0
import QtQuick.Controls 2.0
import QtQuick.Templates 2.0 as T
diff --git a/examples/quick/extras/extras.pro b/examples/quick/extras/extras.pro
deleted file mode 100644
index 960d3705..00000000
--- a/examples/quick/extras/extras.pro
+++ /dev/null
@@ -1,3 +0,0 @@
-TEMPLATE = subdirs
-SUBDIRS += \
- drawer
diff --git a/examples/quick/quick.pro b/examples/quick/quick.pro
index 18a33efe..80f94e86 100644
--- a/examples/quick/quick.pro
+++ b/examples/quick/quick.pro
@@ -1,5 +1,4 @@
TEMPLATE = subdirs
SUBDIRS += \
calendar \
- controls \
- extras
+ controls
diff --git a/src/imports/extras/Dial.qml b/src/imports/controls/Dial.qml
index fbf2807f..fcca2066 100644
--- a/src/imports/extras/Dial.qml
+++ b/src/imports/controls/Dial.qml
@@ -3,7 +3,7 @@
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
-** This file is part of the Qt Quick Extras module of the Qt Toolkit.
+** This file is part of the Qt Quick Controls module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL3$
** Commercial License Usage
@@ -36,7 +36,6 @@
import QtQuick 2.6
import QtQuick.Controls 2.0
-import QtQuick.Extras 2.0
AbstractDial {
id: control
diff --git a/src/imports/extras/Drawer.qml b/src/imports/controls/Drawer.qml
index 504fec6b..57db687d 100644
--- a/src/imports/extras/Drawer.qml
+++ b/src/imports/controls/Drawer.qml
@@ -3,7 +3,7 @@
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
-** This file is part of the Qt Quick Extras module of the Qt Toolkit.
+** This file is part of the Qt Quick Controls module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL3$
** Commercial License Usage
@@ -36,7 +36,6 @@
import QtQuick 2.6
import QtQuick.Controls 2.0
-import QtQuick.Extras 2.0
AbstractDrawer {
id: control
diff --git a/src/imports/extras/SwipeView.qml b/src/imports/controls/SwipeView.qml
index 4ed74f43..63274f20 100644
--- a/src/imports/extras/SwipeView.qml
+++ b/src/imports/controls/SwipeView.qml
@@ -3,7 +3,7 @@
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
-** This file is part of the Qt Quick Extras module of the Qt Toolkit.
+** This file is part of the Qt Quick Controls module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL3$
** Commercial License Usage
@@ -35,7 +35,7 @@
****************************************************************************/
import QtQuick 2.6
-import QtQuick.Extras 2.0
+import QtQuick.Controls 2.0
AbstractSwipeView {
id: control
diff --git a/src/imports/extras/Tumbler.qml b/src/imports/controls/Tumbler.qml
index 7dc7ba1f..500d59db 100644
--- a/src/imports/extras/Tumbler.qml
+++ b/src/imports/controls/Tumbler.qml
@@ -3,7 +3,7 @@
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
-** This file is part of the Qt Quick Extras module of the Qt Toolkit.
+** This file is part of the Qt Quick Controls module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL3$
** Commercial License Usage
@@ -36,7 +36,6 @@
import QtQuick 2.6
import QtQuick.Controls 2.0
-import QtQuick.Extras 2.0
AbstractTumbler {
id: control
diff --git a/src/imports/controls/controls.pro b/src/imports/controls/controls.pro
index ddf85666..efea03ef 100644
--- a/src/imports/controls/controls.pro
+++ b/src/imports/controls/controls.pro
@@ -15,6 +15,8 @@ QML_FILES = \
BusyIndicator.qml \
Button.qml \
CheckBox.qml \
+ Dial.qml \
+ Drawer.qml \
Frame.qml \
GroupBox.qml \
Label.qml \
@@ -26,21 +28,31 @@ QML_FILES = \
Slider.qml \
StackView.qml \
Switch.qml \
+ SwipeView.qml \
TabBar.qml \
TabButton.qml \
TextArea.qml \
TextField.qml \
ToggleButton.qml \
ToolBar.qml \
- ToolButton.qml
+ ToolButton.qml \
+ Tumbler.qml
HEADERS += \
+ $$PWD/qquickdial_p.h \
+ $$PWD/qquickdrawer_p.h \
+ $$PWD/qquickswipeview_p.h \
$$PWD/qquicktheme_p.h \
- $$PWD/qquickthemedata_p.h
+ $$PWD/qquickthemedata_p.h \
+ $$PWD/qquicktumbler_p.h
SOURCES += \
+ $$PWD/qquickdial.cpp \
+ $$PWD/qquickdrawer.cpp \
+ $$PWD/qquickswipeview.cpp \
$$PWD/qquicktheme.cpp \
$$PWD/qquickthemedata.cpp \
+ $$PWD/qquicktumbler.cpp \
$$PWD/qtquickcontrols2plugin.cpp
RESOURCES += \
diff --git a/src/imports/extras/doc/images/qtquickextras2-dial-background.png b/src/imports/controls/doc/images/qtquickcontrols2-dial-background.png
index 38fad583..38fad583 100644
--- a/src/imports/extras/doc/images/qtquickextras2-dial-background.png
+++ b/src/imports/controls/doc/images/qtquickcontrols2-dial-background.png
Binary files differ
diff --git a/src/imports/extras/doc/images/qtquickextras2-dial-handle.png b/src/imports/controls/doc/images/qtquickcontrols2-dial-handle.png
index e6fd8cdc..e6fd8cdc 100644
--- a/src/imports/extras/doc/images/qtquickextras2-dial-handle.png
+++ b/src/imports/controls/doc/images/qtquickcontrols2-dial-handle.png
Binary files differ
diff --git a/src/imports/extras/doc/images/qtquickextras2-tumbler-background.png b/src/imports/controls/doc/images/qtquickcontrols2-tumbler-background.png
index aa736615..aa736615 100644
--- a/src/imports/extras/doc/images/qtquickextras2-tumbler-background.png
+++ b/src/imports/controls/doc/images/qtquickcontrols2-tumbler-background.png
Binary files differ
diff --git a/src/imports/extras/doc/images/qtquickextras2-tumbler-contentItem.png b/src/imports/controls/doc/images/qtquickcontrols2-tumbler-contentItem.png
index aa736615..aa736615 100644
--- a/src/imports/extras/doc/images/qtquickextras2-tumbler-contentItem.png
+++ b/src/imports/controls/doc/images/qtquickcontrols2-tumbler-contentItem.png
Binary files differ
diff --git a/src/imports/extras/doc/images/qtquickextras2-tumbler-delegate.png b/src/imports/controls/doc/images/qtquickcontrols2-tumbler-delegate.png
index 77c51efd..77c51efd 100644
--- a/src/imports/extras/doc/images/qtquickextras2-tumbler-delegate.png
+++ b/src/imports/controls/doc/images/qtquickcontrols2-tumbler-delegate.png
Binary files differ
diff --git a/src/imports/extras/doc/images/qtquickextras2-tumbler-wrap.gif b/src/imports/controls/doc/images/qtquickcontrols2-tumbler-wrap.gif
index 2a7e435d..2a7e435d 100644
--- a/src/imports/extras/doc/images/qtquickextras2-tumbler-wrap.gif
+++ b/src/imports/controls/doc/images/qtquickcontrols2-tumbler-wrap.gif
Binary files differ
diff --git a/src/imports/controls/doc/qtquickcontrols2.qdocconf b/src/imports/controls/doc/qtquickcontrols2.qdocconf
index 9e613328..b4d17791 100644
--- a/src/imports/controls/doc/qtquickcontrols2.qdocconf
+++ b/src/imports/controls/doc/qtquickcontrols2.qdocconf
@@ -23,7 +23,7 @@ qhp.QtQuickControls2.subprojects.qtquickcontrols2qmltypes.indexTitle = Qt Quick
qhp.QtQuickControls2.subprojects.qtquickcontrols2qmltypes.selectors = qmlclass
qhp.QtQuickControls2.subprojects.qtquickcontrols2qmltypes.sortPages = true
-depends = qtcore qtgui qtdoc qtqml qtquick qtquicklayouts qtquickdialogs qtquickcontrols qtquickextras2
+depends = qtcore qtgui qtdoc qtqml qtquick qtquicklayouts qtquickdialogs qtquickcontrols
# Specify the install path under QT_INSTALL_EXAMPLES
# Examples will be installed under quick/controls - 'controls' subdirectory
diff --git a/src/imports/controls/doc/src/qtquickcontrols2-customize.qdoc b/src/imports/controls/doc/src/qtquickcontrols2-customize.qdoc
index b099b482..e554b202 100644
--- a/src/imports/controls/doc/src/qtquickcontrols2-customize.qdoc
+++ b/src/imports/controls/doc/src/qtquickcontrols2-customize.qdoc
@@ -95,6 +95,23 @@
\snippet CheckBox.qml indicator
+ \section1 Customizing Dial
+
+ Dial consists of two visual items: \l {Control::background}{background}
+ and \l {Dial::handle}{handle}.
+
+ \section3 Background
+
+ \image qtquickcontrols2-dial-background.png
+
+ \snippet Dial.qml background
+
+ \section3 Indicator
+
+ \image qtquickcontrols2-dial-handle.png
+
+ \snippet Dial.qml handle
+
\section1 Customizing Frame
@@ -370,4 +387,29 @@
\image qtquickcontrols2-toolbutton-label.png
\snippet ToolButton.qml label
+
+ \section1 Customizing Tumbler
+
+ Tumbler consists of three visual items:
+ \l {Control::background}{background},
+ \l {Control::contentItem}{contentItem}, and
+ \l {Tumbler::delegate}{delegate}.
+
+ \section3 Background
+
+ \image qtquickcontrols2-tumbler-background.png
+
+ Tumbler has no background item by default.
+
+ \section3 Content Item
+
+ \image qtquickcontrols2-tumbler-contentItem.png
+
+ \snippet Tumbler.qml contentItem
+
+ \section3 Delegate
+
+ \image qtquickcontrols2-tumbler-delegate.png
+
+ \snippet Tumbler.qml delegate
*/
diff --git a/src/imports/controls/doc/src/qtquickcontrols2-index.qdoc b/src/imports/controls/doc/src/qtquickcontrols2-index.qdoc
index eefd6c3a..d6d13cae 100644
--- a/src/imports/controls/doc/src/qtquickcontrols2-index.qdoc
+++ b/src/imports/controls/doc/src/qtquickcontrols2-index.qdoc
@@ -229,7 +229,7 @@
\li \l [QtQuickControls2] {Slider}
\row
\li \l [QtQuickControls] {SpinBox}
- \li No equivalent; see \l [QtQuickExtras2] {Tumbler} instead.
+ \li No equivalent; see \l [QtQuickControls2] {Tumbler} instead.
\row
\li \l [QtQuickControls] {Stack},
\l [QtQuickControls] {StackView},
@@ -245,7 +245,7 @@
\li \l [QtQuickControls] {Tab},
\l [QtQuickControls] {TabView}
\li \l [QtQuickControls2] {TabBar} in combination with, for example,
- \l [QtQuickExtras2] {SwipeView}.
+ \l [QtQuickControls2] {SwipeView}.
\row
\li \l [QtQuickControls] {TableView}
\li No equivalent
diff --git a/src/imports/extras/qquickdial.cpp b/src/imports/controls/qquickdial.cpp
index aa93e9ca..407899d3 100644
--- a/src/imports/extras/qquickdial.cpp
+++ b/src/imports/controls/qquickdial.cpp
@@ -3,7 +3,7 @@
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
-** This file is part of the Qt Quick Extras module of the Qt Toolkit.
+** This file is part of the Qt Quick Controls module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL3$
** Commercial License Usage
@@ -46,7 +46,7 @@ QT_BEGIN_NAMESPACE
\qmltype Dial
\inherits Control
\instantiates QQuickDial
- \inqmlmodule QtQuick.Extras
+ \inqmlmodule QtQuick.Controls
\ingroup sliders
\brief A circular dial that is rotated to set a value.
@@ -167,7 +167,7 @@ QQuickDial::QQuickDial(QQuickItem *parent) :
}
/*!
- \qmlproperty real QtQuickExtras2::Dial::from
+ \qmlproperty real QtQuickControls2::Dial::from
This property holds the starting value for the range. The default value is \c 0.0.
@@ -193,7 +193,7 @@ void QQuickDial::setFrom(qreal from)
}
/*!
- \qmlproperty real QtQuickExtras2::Dial::to
+ \qmlproperty real QtQuickControls2::Dial::to
This property holds the end value for the range. The default value is
\c 1.0.
@@ -220,7 +220,7 @@ void QQuickDial::setTo(qreal to)
}
/*!
- \qmlproperty real QtQuickExtras2::Dial::value
+ \qmlproperty real QtQuickControls2::Dial::value
This property holds the value in the range \c from - \c to. The default
value is \c 0.0.
@@ -251,7 +251,7 @@ void QQuickDial::setValue(qreal value)
}
/*!
- \qmlproperty real QtQuickExtras2::Dial::position
+ \qmlproperty real QtQuickControls2::Dial::position
This property holds the logical position of the handle.
@@ -269,7 +269,7 @@ qreal QQuickDial::position() const
}
/*!
- \qmlproperty real QtQuickExtras2::Dial::angle \readonly
+ \qmlproperty real QtQuickControls2::Dial::angle \readonly
This property holds the angle of the handle.
@@ -285,7 +285,7 @@ qreal QQuickDial::angle() const
}
/*!
- \qmlproperty real QtQuickExtras2::Dial::stepSize
+ \qmlproperty real QtQuickControls2::Dial::stepSize
This property holds the step size. The default value is \c 0.0.
@@ -307,7 +307,7 @@ void QQuickDial::setStepSize(qreal step)
}
/*!
- \qmlproperty enumeration QtQuickExtras2::Dial::snapMode
+ \qmlproperty enumeration QtQuickControls2::Dial::snapMode
This property holds the snap mode.
@@ -339,7 +339,7 @@ void QQuickDial::setSnapMode(SnapMode mode)
}
/*!
- \qmlproperty bool QtQuickExtras2::Dial::pressed
+ \qmlproperty bool QtQuickControls2::Dial::pressed
This property holds whether the dial is pressed.
@@ -372,7 +372,7 @@ void QQuickDial::setPressed(bool pressed)
}
/*!
- \qmlmethod void QtQuickExtras2::Dial::increase()
+ \qmlmethod void QtQuickControls2::Dial::increase()
Increases the value by \l stepSize, or \c 0.1 if stepSize is not defined.
@@ -386,7 +386,7 @@ void QQuickDial::increase()
}
/*!
- \qmlmethod void QtQuickExtras2::Dial::decrease()
+ \qmlmethod void QtQuickControls2::Dial::decrease()
Decreases the value by \l stepSize, or \c 0.1 if stepSize is not defined.
@@ -400,7 +400,7 @@ void QQuickDial::decrease()
}
/*!
- \qmlproperty component QtQuickExtras2::Dial::handle
+ \qmlproperty component QtQuickControls2::Dial::handle
This property holds the handle of the dial.
diff --git a/src/imports/extras/qquickdial_p.h b/src/imports/controls/qquickdial_p.h
index 0b5cda35..a31ad09f 100644
--- a/src/imports/extras/qquickdial_p.h
+++ b/src/imports/controls/qquickdial_p.h
@@ -3,7 +3,7 @@
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
-** This file is part of the Qt Quick Extras module of the Qt Toolkit.
+** This file is part of the Qt Quick Controls module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL3$
** Commercial License Usage
diff --git a/src/imports/extras/qquickdrawer.cpp b/src/imports/controls/qquickdrawer.cpp
index 1bb9c6f6..23988432 100644
--- a/src/imports/extras/qquickdrawer.cpp
+++ b/src/imports/controls/qquickdrawer.cpp
@@ -3,7 +3,7 @@
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
-** This file is part of the Qt Quick Extras module of the Qt Toolkit.
+** This file is part of the Qt Quick Controls module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL3$
** Commercial License Usage
diff --git a/src/imports/extras/qquickdrawer_p.h b/src/imports/controls/qquickdrawer_p.h
index 00af2164..1fd8b21a 100644
--- a/src/imports/extras/qquickdrawer_p.h
+++ b/src/imports/controls/qquickdrawer_p.h
@@ -3,7 +3,7 @@
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
-** This file is part of the Qt Quick Extras module of the Qt Toolkit.
+** This file is part of the Qt Quick Controls module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL3$
** Commercial License Usage
diff --git a/src/imports/extras/qquickswipeview.cpp b/src/imports/controls/qquickswipeview.cpp
index bb89f9fd..f86e8c8c 100644
--- a/src/imports/extras/qquickswipeview.cpp
+++ b/src/imports/controls/qquickswipeview.cpp
@@ -3,7 +3,7 @@
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
-** This file is part of the Qt Quick Extras module of the Qt Toolkit.
+** This file is part of the Qt Quick Controls module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL3$
** Commercial License Usage
@@ -44,7 +44,7 @@ QT_BEGIN_NAMESPACE
\qmltype SwipeView
\inherits Container
\instantiates QQuickSwipeView
- \inqmlmodule QtQuick.Extras
+ \inqmlmodule QtQuick.Controls
\ingroup navigation
\brief A swipe view control.
@@ -149,7 +149,7 @@ void QQuickSwipeView::contentItemChange(QQuickItem *newItem, QQuickItem *oldItem
}
/*!
- \qmlattachedproperty int QtQuickExtras2::SwipeView::index
+ \qmlattachedproperty int QtQuickControls2::SwipeView::index
This attached property holds the index of each child item in the SwipeView.
@@ -157,7 +157,7 @@ void QQuickSwipeView::contentItemChange(QQuickItem *newItem, QQuickItem *oldItem
*/
/*!
- \qmlattachedproperty bool QtQuickExtras2::SwipeView::isCurrentItem
+ \qmlattachedproperty bool QtQuickControls2::SwipeView::isCurrentItem
This attached property is \c true if this child is the current item.
@@ -165,7 +165,7 @@ void QQuickSwipeView::contentItemChange(QQuickItem *newItem, QQuickItem *oldItem
*/
/*!
- \qmlattachedproperty SwipeView QtQuickExtras2::SwipeView::view
+ \qmlattachedproperty SwipeView QtQuickControls2::SwipeView::view
This attached property holds the view that manages this child item.
diff --git a/src/imports/extras/qquickswipeview_p.h b/src/imports/controls/qquickswipeview_p.h
index 89d344ef..e7e1600c 100644
--- a/src/imports/extras/qquickswipeview_p.h
+++ b/src/imports/controls/qquickswipeview_p.h
@@ -3,7 +3,7 @@
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
-** This file is part of the Qt Quick Extras module of the Qt Toolkit.
+** This file is part of the Qt Quick Controls module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL3$
** Commercial License Usage
diff --git a/src/imports/extras/qquicktumbler.cpp b/src/imports/controls/qquicktumbler.cpp
index dd24693b..9f53f92e 100644
--- a/src/imports/extras/qquicktumbler.cpp
+++ b/src/imports/controls/qquicktumbler.cpp
@@ -3,7 +3,7 @@
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
-** This file is part of the Qt Quick Extras module of the Qt Toolkit.
+** This file is part of the Qt Quick Controls module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL3$
** Commercial License Usage
@@ -45,7 +45,7 @@ QT_BEGIN_NAMESPACE
\qmltype Tumbler
\inherits Control
\instantiates QQuickTumbler
- \inqmlmodule QtQuick.Extras
+ \inqmlmodule QtQuick.Controls
\ingroup containers
\brief A spinnable wheel of items that can be selected.
@@ -63,7 +63,7 @@ QT_BEGIN_NAMESPACE
\snippet tst_tumbler.qml contentItem
- \image qtquickextras2-tumbler-wrap.gif
+ \image qtquickcontrols2-tumbler-wrap.gif
*/
class QQuickTumblerPrivate : public QQuickControlPrivate, public QQuickItemChangeListener
@@ -193,7 +193,7 @@ QQuickTumbler::~QQuickTumbler()
}
/*!
- \qmlproperty variant QtQuickExtras2::Tumbler::model
+ \qmlproperty variant QtQuickControls2::Tumbler::model
This property holds the model that provides data for this tumbler.
*/
@@ -213,7 +213,7 @@ void QQuickTumbler::setModel(const QVariant &model)
}
/*!
- \qmlproperty int QtQuickExtras2::Tumbler::count
+ \qmlproperty int QtQuickControls2::Tumbler::count
This property holds the number of items in the model.
*/
@@ -224,7 +224,7 @@ int QQuickTumbler::count() const
}
/*!
- \qmlproperty int QtQuickExtras2::Tumbler::currentIndex
+ \qmlproperty int QtQuickControls2::Tumbler::currentIndex
This property holds the index of the current item.
*/
@@ -241,7 +241,7 @@ void QQuickTumbler::setCurrentIndex(int currentIndex)
}
/*!
- \qmlproperty Item QtQuickExtras2::Tumbler::currentItem
+ \qmlproperty Item QtQuickControls2::Tumbler::currentItem
This property holds the item at the current index.
*/
@@ -252,7 +252,7 @@ QQuickItem *QQuickTumbler::currentItem() const
}
/*!
- \qmlproperty component QtQuickExtras2::Tumbler::delegate
+ \qmlproperty component QtQuickControls2::Tumbler::delegate
This property holds the delegate used to display each item.
*/
@@ -272,7 +272,7 @@ void QQuickTumbler::setDelegate(QQmlComponent *delegate)
}
/*!
- \qmlproperty int QtQuickExtras2::Tumbler::visibleItemCount
+ \qmlproperty int QtQuickControls2::Tumbler::visibleItemCount
This property holds the number of items visible in the tumbler. It must be
an odd number, as the current item is always vertically centered.
diff --git a/src/imports/extras/qquicktumbler_p.h b/src/imports/controls/qquicktumbler_p.h
index 948382e4..46c683e8 100644
--- a/src/imports/extras/qquicktumbler_p.h
+++ b/src/imports/controls/qquicktumbler_p.h
@@ -3,7 +3,7 @@
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
-** This file is part of the Qt Quick Extras module of the Qt Toolkit.
+** This file is part of the Qt Quick Controls module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL3$
** Commercial License Usage
diff --git a/src/imports/controls/qtquickcontrols2plugin.cpp b/src/imports/controls/qtquickcontrols2plugin.cpp
index fcc263a8..f572590c 100644
--- a/src/imports/controls/qtquickcontrols2plugin.cpp
+++ b/src/imports/controls/qtquickcontrols2plugin.cpp
@@ -60,6 +60,10 @@
#include <QtQuickTemplates/private/qquicktogglebutton_p.h>
#include <QtQuickTemplates/private/qquicktoolbar_p.h>
#include <QtQuickTemplates/private/qquicktoolbutton_p.h>
+#include "qquickdial_p.h"
+#include "qquickdrawer_p.h"
+#include "qquickswipeview_p.h"
+#include "qquicktumbler_p.h"
#include "qquicktheme_p.h"
void initResources()
@@ -83,14 +87,22 @@ void QtQuickControls2Plugin::registerTypes(const char *uri)
{
qmlRegisterUncreatableType<QQuickThemeAttached>(uri, 2, 0, "Theme", "Theme is an attached property");
+ qmlRegisterType<QQuickDial>(uri, 2, 0, "AbstractDial");
+ qmlRegisterType<QQuickDrawer>(uri, 2, 0, "AbstractDrawer");
qmlRegisterType<QQuickExclusiveGroup>(uri, 2, 0, "ExclusiveGroup");
qmlRegisterType<QQuickExclusiveGroupAttached>();
+ qmlRegisterType<QQuickSwipeView>(uri, 2, 0, "AbstractSwipeView");
+ qmlRegisterType<QQuickSwipeViewAttached>();
+ qmlRegisterType<QQuickTumbler>(uri, 2, 0, "AbstractTumbler");
+ qmlRegisterType<QQuickTumblerAttached>();
QDir baseDir(baseUrl().toLocalFile());
qmlRegisterType(QUrl::fromLocalFile(baseDir.filePath(QStringLiteral("ApplicationWindow.qml"))), uri, 2, 0, "ApplicationWindow");
qmlRegisterType(QUrl::fromLocalFile(baseDir.filePath(QStringLiteral("BusyIndicator.qml"))), uri, 2, 0, "BusyIndicator");
qmlRegisterType(QUrl::fromLocalFile(baseDir.filePath(QStringLiteral("Button.qml"))), uri, 2, 0, "Button");
qmlRegisterType(QUrl::fromLocalFile(baseDir.filePath(QStringLiteral("CheckBox.qml"))), uri, 2, 0, "CheckBox");
+ qmlRegisterType(QUrl::fromLocalFile(baseDir.filePath(QStringLiteral("Dial.qml"))), uri, 2, 0, "Dial");
+ qmlRegisterType(QUrl::fromLocalFile(baseDir.filePath(QStringLiteral("Drawer.qml"))), uri, 2, 0, "Drawer");
qmlRegisterType(QUrl::fromLocalFile(baseDir.filePath(QStringLiteral("Frame.qml"))), uri, 2, 0, "Frame");
qmlRegisterType(QUrl::fromLocalFile(baseDir.filePath(QStringLiteral("GroupBox.qml"))), uri, 2, 0, "GroupBox");
qmlRegisterType(QUrl::fromLocalFile(baseDir.filePath(QStringLiteral("Label.qml"))), uri, 2, 0, "Label");
@@ -101,6 +113,7 @@ void QtQuickControls2Plugin::registerTypes(const char *uri)
qmlRegisterType(QUrl::fromLocalFile(baseDir.filePath(QStringLiteral("ScrollIndicator.qml"))), uri, 2, 0, "ScrollIndicator");
qmlRegisterType(QUrl::fromLocalFile(baseDir.filePath(QStringLiteral("Slider.qml"))), uri, 2, 0, "Slider");
qmlRegisterType(QUrl::fromLocalFile(baseDir.filePath(QStringLiteral("StackView.qml"))), uri, 2, 0, "StackView");
+ qmlRegisterType(QUrl::fromLocalFile(baseDir.filePath(QStringLiteral("SwipeView.qml"))), uri, 2, 0, "SwipeView");
qmlRegisterType(QUrl::fromLocalFile(baseDir.filePath(QStringLiteral("Switch.qml"))), uri, 2, 0, "Switch");
qmlRegisterType(QUrl::fromLocalFile(baseDir.filePath(QStringLiteral("TabBar.qml"))), uri, 2, 0, "TabBar");
qmlRegisterType(QUrl::fromLocalFile(baseDir.filePath(QStringLiteral("TabButton.qml"))), uri, 2, 0, "TabButton");
@@ -109,6 +122,7 @@ void QtQuickControls2Plugin::registerTypes(const char *uri)
qmlRegisterType(QUrl::fromLocalFile(baseDir.filePath(QStringLiteral("ToggleButton.qml"))), uri, 2, 0, "ToggleButton");
qmlRegisterType(QUrl::fromLocalFile(baseDir.filePath(QStringLiteral("ToolBar.qml"))), uri, 2, 0, "ToolBar");
qmlRegisterType(QUrl::fromLocalFile(baseDir.filePath(QStringLiteral("ToolButton.qml"))), uri, 2, 0, "ToolButton");
+ qmlRegisterType(QUrl::fromLocalFile(baseDir.filePath(QStringLiteral("Tumbler.qml"))), uri, 2, 0, "Tumbler");
}
void QtQuickControls2Plugin::initializeEngine(QQmlEngine *engine, const char *uri)
diff --git a/src/imports/extras/doc/images/.directory b/src/imports/extras/doc/images/.directory
deleted file mode 100644
index 7d49c166..00000000
--- a/src/imports/extras/doc/images/.directory
+++ /dev/null
@@ -1,4 +0,0 @@
-[Dolphin]
-Timestamp=2015,7,13,18,47,2
-Version=3
-ViewMode=1
diff --git a/src/imports/extras/doc/qtquickextras2.qdocconf b/src/imports/extras/doc/qtquickextras2.qdocconf
deleted file mode 100644
index 622c7d05..00000000
--- a/src/imports/extras/doc/qtquickextras2.qdocconf
+++ /dev/null
@@ -1,47 +0,0 @@
-include($QT_INSTALL_DOCS/global/qt-module-defaults.qdocconf)
-
-project = QtQuickExtras2
-description = Qt Quick Extras 2 Reference Documentation
-version = $QT_VERSION
-
-qhp.projects = QtQuickExtras2
-
-qhp.QtQuickExtras2.file = qtquickextras2.qhp
-qhp.QtQuickExtras2.namespace = org.qt-project.qtquickextras2.$QT_VERSION_TAG
-qhp.QtQuickExtras2.virtualFolder = qtquickextras2
-qhp.QtQuickExtras2.indexTitle = Qt Quick Extras 2
-qhp.QtQuickExtras2.indexRoot =
-
-qhp.QtQuickExtras2.filterAttributes = qtquickextras2 $QT_VERSION qtrefdoc
-qhp.QtQuickExtras2.customFilters.Qt.name = QtQuickExtras2 $QT_VERSION
-qhp.QtQuickExtras2.customFilters.Qt.filterAttributes = qtquickextras2 $QT_VERSION
-
-qhp.QtQuickExtras2.subprojects = qtquickextras2qmltypes
-
-qhp.QtQuickExtras2.subprojects.qtquickextras2qmltypes.title = Extras 2 QML Types
-qhp.QtQuickExtras2.subprojects.qtquickextras2qmltypes.indexTitle = Qt Quick Extras 2 QML Types
-qhp.QtQuickExtras2.subprojects.qtquickextras2qmltypes.selectors = qmlclass
-qhp.QtQuickExtras2.subprojects.qtquickextras2qmltypes.sortPages = true
-
-depends = qtcore qtgui qtdoc qtqml qtquick qtquicklayouts qtquickdialogs qtquickcontrols2
-
-# Specify the install path under QT_INSTALL_EXAMPLES
-# Examples will be installed under quick/extras - 'extras' subdirectory
-# is given as part of \example commands
-exampledirs += ../ ../../../../examples/quick/extras
-examplesinstallpath = quick/extras
-
-headerdirs += ../
-sourcedirs += ../
-
-imagedirs += images
-
-navigation.landingpage = "Qt Quick Extras 2"
-navigation.qmltypespage = "Qt Quick Extras 2 QML Types"
-
-tagfile = qtquickextras2.tags
-
-# Specify a QML module suffix, applied to html filenames, to avoid
-# clashes with Qt Quick Extras 1 documentation.
-outputsuffixes = QML
-outputsuffixes.QML = 2
diff --git a/src/imports/extras/doc/src/qtquickextras2-customize.qdoc b/src/imports/extras/doc/src/qtquickextras2-customize.qdoc
deleted file mode 100644
index fc04fe1f..00000000
--- a/src/imports/extras/doc/src/qtquickextras2-customize.qdoc
+++ /dev/null
@@ -1,82 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2015 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:FDL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see http://www.qt.io/terms-conditions. For further
-** information use the contact form at http://www.qt.io/contact-us.
-**
-** GNU Free Documentation License Usage
-** Alternatively, this file may be used under the terms of the GNU Free
-** Documentation License version 1.3 as published by the Free Software
-** Foundation and appearing in the file included in the packaging of
-** this file. Please review the following information to ensure
-** the GNU Free Documentation License version 1.3 requirements
-** will be met: http://www.gnu.org/copyleft/fdl.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \page qtquickextras2-customize.html
- \title Customizing Qt Quick Extras 2
- \brief A set of UI controls to create user interfaces in Qt Quick
-
- Qt Quick Controls consist of a hierarchy (tree) of items. In order to
- provide a custom look and feel, the default implementation of each item
- can be replaced with a custom one. The following snippets present the
- default implementations of various items. These can be used as a starting
- point to implement a custom look and feel.
-
- \sa {Customizing Qt Quick Controls 2}
-
- \section1 Customizing Dial
-
- Dial consists of two visual items: \l {Control::background}{background}
- and \l {Dial::handle}{handle}.
-
- \section3 Background
-
- \image qtquickextras2-dial-background.png
-
- \snippet Dial.qml background
-
- \section3 Indicator
-
- \image qtquickextras2-dial-handle.png
-
- \snippet Dial.qml handle
-
- \section1 Customizing Tumbler
-
- Tumbler consists of three visual items:
- \l {Control::background}{background},
- \l {Control::contentItem}{contentItem}, and
- \l {Tumbler::delegate}{delegate}.
-
- \section3 Background
-
- \image qtquickextras2-tumbler-background.png
-
- Tumbler has no background item by default.
-
- \section3 Content Item
-
- \image qtquickextras2-tumbler-contentItem.png
-
- \snippet Tumbler.qml contentItem
-
- \section3 Delegate
-
- \image qtquickextras2-tumbler-delegate.png
-
- \snippet Tumbler.qml delegate
-*/
diff --git a/src/imports/extras/doc/src/qtquickextras2-index.qdoc b/src/imports/extras/doc/src/qtquickextras2-index.qdoc
deleted file mode 100644
index 53712e22..00000000
--- a/src/imports/extras/doc/src/qtquickextras2-index.qdoc
+++ /dev/null
@@ -1,49 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2015 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:FDL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see http://www.qt.io/terms-conditions. For further
-** information use the contact form at http://www.qt.io/contact-us.
-**
-** GNU Free Documentation License Usage
-** Alternatively, this file may be used under the terms of the GNU Free
-** Documentation License version 1.3 as published by the Free Software
-** Foundation and appearing in the file included in the packaging of
-** this file. Please review the following information to ensure
-** the GNU Free Documentation License version 1.3 requirements
-** will be met: http://www.gnu.org/copyleft/fdl.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \page qtquickextras2-index.html
- \title Qt Quick Extras 2
-
- \brief The Qt Quick Extras 2 module provides a set of specialized UI
- controls for Qt Quick.
-
- The Qt Quick Extras 2 module provides a set of controls that can be used to
- build interfaces in Qt Quick.
-
- The module is new in Qt 5.6.
-
- Visit the \l{Qt Quick Extras 2 Overview} page to get started.
-
- \section1 Related Information
-
- \list
- \li \l{Qt Quick}
- \li \l{Qt Quick Extras 2 Overview}
- \li \l{Qt Quick Extras 2 QML Types}{Qt Quick Extras 2 QML Types}
- \endlist
-*/
diff --git a/src/imports/extras/doc/src/qtquickextras2-overview.qdoc b/src/imports/extras/doc/src/qtquickextras2-overview.qdoc
deleted file mode 100644
index 9776e1de..00000000
--- a/src/imports/extras/doc/src/qtquickextras2-overview.qdoc
+++ /dev/null
@@ -1,53 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2015 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:FDL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see http://www.qt.io/terms-conditions. For further
-** information use the contact form at http://www.qt.io/contact-us.
-**
-** GNU Free Documentation License Usage
-** Alternatively, this file may be used under the terms of the GNU Free
-** Documentation License version 1.3 as published by the Free Software
-** Foundation and appearing in the file included in the packaging of
-** this file. Please review the following information to ensure
-** the GNU Free Documentation License version 1.3 requirements
-** will be met: http://www.gnu.org/copyleft/fdl.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \page qtquickextras2-overview.html
- \title Qt Quick Extras 2 Overview
- \brief A set of UI controls to create user interfaces in Qt Quick
-
- The Qt Quick Extras 2 module provides a set of UI controls to create user
- interfaces in Qt Quick.
-
- \section1 Getting Started
-
- TODO
-
- \section1 Customization
-
- Qt Quick Controls consist of a hierarchy (tree) of items. In order to
- provide a custom look and feel, the default implementation of each can be
- replaced with a custom item. For examples of how do this, see
- \l {Customizing Qt Quick Extras 2}.
-
- \section1 Related Information
-
- \list
- \li \l{Qt Quick}
- \li \l{Qt Quick Controls 2}
- \endlist
-*/
diff --git a/src/imports/extras/doc/src/qtquickextras2.qdoc b/src/imports/extras/doc/src/qtquickextras2.qdoc
deleted file mode 100644
index 74dbd778..00000000
--- a/src/imports/extras/doc/src/qtquickextras2.qdoc
+++ /dev/null
@@ -1,44 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2015 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:FDL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see http://www.qt.io/terms-conditions. For further
-** information use the contact form at http://www.qt.io/contact-us.
-**
-** GNU Free Documentation License Usage
-** Alternatively, this file may be used under the terms of the GNU Free
-** Documentation License version 1.3 as published by the Free Software
-** Foundation and appearing in the file included in the packaging of
-** this file. Please review the following information to ensure
-** the GNU Free Documentation License version 1.3 requirements
-** will be met: http://www.gnu.org/copyleft/fdl.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \qmlmodule QtQuick.Extras 2.0
- \title Qt Quick Extras 2 QML Types
- \ingroup qmlmodules
- \brief Provides QML types for user interfaces.
-
- The \l{Qt Quick Extras 2} module provides QML types for creating user
- interfaces. These QML types work in conjunction with \l{Qt Quick},
- \l{Qt Quick Layouts} and \l{Qt Quick Controls 2}.
-
- The QML types can be imported into your application using the
- following import statement in your .qml file.
-
- \badcode
- import QtQuick.Extras 2.0
- \endcode
-*/
diff --git a/src/imports/extras/extras.pri b/src/imports/extras/extras.pri
deleted file mode 100644
index 859ed07e..00000000
--- a/src/imports/extras/extras.pri
+++ /dev/null
@@ -1,17 +0,0 @@
-QML_FILES = \
- Dial.qml \
- Drawer.qml \
- SwipeView.qml \
- Tumbler.qml
-
-HEADERS += \
- $$PWD/qquickdial_p.h \
- $$PWD/qquickdrawer_p.h \
- $$PWD/qquickswipeview_p.h \
- $$PWD/qquicktumbler_p.h
-
-SOURCES += \
- $$PWD/qquickdial.cpp \
- $$PWD/qquickdrawer.cpp \
- $$PWD/qquickswipeview.cpp \
- $$PWD/qquicktumbler.cpp
diff --git a/src/imports/extras/extras.pro b/src/imports/extras/extras.pro
deleted file mode 100644
index fd3dcc1e..00000000
--- a/src/imports/extras/extras.pro
+++ /dev/null
@@ -1,23 +0,0 @@
-TARGET = qtquickextras2plugin
-TARGETPATH = QtQuick/Extras.2
-IMPORT_VERSION = 2.0
-
-QT += qml quick
-QT += core-private gui-private qml-private quick-private quicktemplates-private
-
-QMAKE_DOCS = $$PWD/doc/qtquickextras2.qdocconf
-
-DEFINES += QT_NO_CAST_TO_ASCII QT_NO_CAST_FROM_ASCII
-
-INCLUDEPATH += $$PWD
-
-OTHER_FILES += \
- qmldir
-
-SOURCES += \
- $$PWD/qtquickextras2plugin.cpp
-
-include(extras.pri)
-
-CONFIG += no_cxx_module
-load(qml_plugin)
diff --git a/src/imports/extras/plugins.qmltypes b/src/imports/extras/plugins.qmltypes
deleted file mode 100644
index 9741b463..00000000
--- a/src/imports/extras/plugins.qmltypes
+++ /dev/null
@@ -1,67 +0,0 @@
-import QtQuick.tooling 1.2
-
-// This file describes the plugin-supplied types contained in the library.
-// It is used for QML tooling purposes only.
-//
-// This file was auto-generated by:
-// 'qmlplugindump -nonrelocatable QtQuick.Extras 2.0'
-
-Module {
- dependencies: [
- "QtQuick 2.6",
- "QtQuick.Controls 2.0",
- "QtQuick.Window 2.2"
- ]
- Component {
- name: "QQuickDrawer"
- defaultProperty: "contentItem"
- prototype: "QQuickControl"
- exports: ["QtQuick.Extras/AbstractDrawer 2.0"]
- exportMetaObjectRevisions: [0]
- Property { name: "edge"; type: "Qt::Edge" }
- Property { name: "position"; type: "double" }
- Property { name: "contentItem"; type: "QQuickItem"; isPointer: true }
- Property { name: "animation"; type: "QQuickPropertyAnimation"; isPointer: true }
- Signal { name: "clicked" }
- Method { name: "open" }
- Method { name: "close" }
- }
- Component {
- name: "QQuickSwipeView"
- defaultProperty: "contentData"
- prototype: "QQuickContainer"
- exports: ["QtQuick.Extras/AbstractSwipeView 2.0"]
- exportMetaObjectRevisions: [0]
- Property { name: "count"; type: "int"; isReadonly: true }
- Property { name: "currentIndex"; type: "int" }
- Property { name: "model"; type: "QVariant"; isReadonly: true }
- Property { name: "contentData"; type: "QObject"; isList: true; isReadonly: true }
- Method {
- name: "setCurrentIndex"
- Parameter { name: "index"; type: "int" }
- }
- Method {
- name: "itemAt"
- type: "QQuickItem*"
- Parameter { name: "index"; type: "int" }
- }
- Method {
- name: "addItem"
- Parameter { name: "item"; type: "QQuickItem"; isPointer: true }
- }
- Method {
- name: "insertItem"
- Parameter { name: "index"; type: "int" }
- Parameter { name: "item"; type: "QQuickItem"; isPointer: true }
- }
- Method {
- name: "moveItem"
- Parameter { name: "from"; type: "int" }
- Parameter { name: "to"; type: "int" }
- }
- Method {
- name: "removeItem"
- Parameter { name: "index"; type: "int" }
- }
- }
-}
diff --git a/src/imports/extras/qmldir b/src/imports/extras/qmldir
deleted file mode 100644
index 8822d83b..00000000
--- a/src/imports/extras/qmldir
+++ /dev/null
@@ -1,3 +0,0 @@
-module QtQuick.Extras
-plugin qtquickextras2plugin
-classname QtQuickExtras2Plugin
diff --git a/src/imports/extras/qtquickextras2plugin.cpp b/src/imports/extras/qtquickextras2plugin.cpp
deleted file mode 100644
index e0208e7a..00000000
--- a/src/imports/extras/qtquickextras2plugin.cpp
+++ /dev/null
@@ -1,74 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2015 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Extras module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL3$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see http://www.qt.io/terms-conditions. For further
-** information use the contact form at http://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPLv3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or later as published by the Free
-** Software Foundation and appearing in the file LICENSE.GPL included in
-** the packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 2.0 requirements will be
-** met: http://www.gnu.org/licenses/gpl-2.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QtQml/qqmlextensionplugin.h>
-#include <QtCore/qdir.h>
-
-#include "qquickdial_p.h"
-#include "qquickdrawer_p.h"
-#include "qquickswipeview_p.h"
-#include "qquicktumbler_p.h"
-
-QT_BEGIN_NAMESPACE
-
-class QtQuickExtras2Plugin: public QQmlExtensionPlugin
-{
- Q_OBJECT
- Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface/1.0")
-
-public:
- void registerTypes(const char *uri);
-};
-
-void QtQuickExtras2Plugin::registerTypes(const char *uri)
-{
- qmlRegisterType<QQuickDial>(uri, 2, 0, "AbstractDial");
- qmlRegisterType<QQuickDrawer>(uri, 2, 0, "AbstractDrawer");
- qmlRegisterType<QQuickSwipeView>(uri, 2, 0, "AbstractSwipeView");
- qmlRegisterType<QQuickSwipeViewAttached>();
- qmlRegisterType<QQuickTumbler>(uri, 2, 0, "AbstractTumbler");
- qmlRegisterType<QQuickTumblerAttached>();
-
- QDir baseDir(baseUrl().toLocalFile());
- qmlRegisterType(QUrl::fromLocalFile(baseDir.filePath(QStringLiteral("Dial.qml"))), uri, 2, 0, "Dial");
- qmlRegisterType(QUrl::fromLocalFile(baseDir.filePath(QStringLiteral("Drawer.qml"))), uri, 2, 0, "Drawer");
- qmlRegisterType(QUrl::fromLocalFile(baseDir.filePath(QStringLiteral("SwipeView.qml"))), uri, 2, 0, "SwipeView");
- qmlRegisterType(QUrl::fromLocalFile(baseDir.filePath(QStringLiteral("Tumbler.qml"))), uri, 2, 0, "Tumbler");
-}
-
-QT_END_NAMESPACE
-
-#include "qtquickextras2plugin.moc"
diff --git a/src/imports/imports.pro b/src/imports/imports.pro
index aca40893..7a5e5bf5 100644
--- a/src/imports/imports.pro
+++ b/src/imports/imports.pro
@@ -2,5 +2,4 @@ TEMPLATE = subdirs
SUBDIRS += \
controls \
calendar \
- extras \
templates
diff --git a/tests/auto/auto.pro b/tests/auto/auto.pro
index c8076194..4c42920b 100644
--- a/tests/auto/auto.pro
+++ b/tests/auto/auto.pro
@@ -4,6 +4,5 @@ SUBDIRS += \
activeFocusOnTab \
applicationwindow \
controls \
- extras \
sanity \
snippets
diff --git a/tests/auto/extras/data/TumblerDatePicker.qml b/tests/auto/controls/data/TumblerDatePicker.qml
index 673ed142..18d7fb97 100644
--- a/tests/auto/extras/data/TumblerDatePicker.qml
+++ b/tests/auto/controls/data/TumblerDatePicker.qml
@@ -40,7 +40,6 @@
import QtQuick 2.6
import QtQuick.Controls 2.0
-import QtQuick.Extras 2.0
Row {
id: datePicker
diff --git a/tests/auto/extras/data/tst_dial.qml b/tests/auto/controls/data/tst_dial.qml
index 0d1a1124..5a4a66a5 100644
--- a/tests/auto/extras/data/tst_dial.qml
+++ b/tests/auto/controls/data/tst_dial.qml
@@ -40,7 +40,7 @@
import QtQuick 2.2
import QtTest 1.0
-import QtQuick.Extras 2.0
+import QtQuick.Controls 2.0
TestCase {
id: testCase
diff --git a/tests/auto/extras/data/tst_drawer.qml b/tests/auto/controls/data/tst_drawer.qml
index 33919c13..af815bed 100644
--- a/tests/auto/extras/data/tst_drawer.qml
+++ b/tests/auto/controls/data/tst_drawer.qml
@@ -40,7 +40,7 @@
import QtQuick 2.2
import QtTest 1.0
-import QtQuick.Extras 2.0
+import QtQuick.Controls 2.0
TestCase {
id: testCase
diff --git a/tests/auto/extras/data/tst_swipeview.qml b/tests/auto/controls/data/tst_swipeview.qml
index 81c61f45..a4dd41dd 100644
--- a/tests/auto/extras/data/tst_swipeview.qml
+++ b/tests/auto/controls/data/tst_swipeview.qml
@@ -40,7 +40,7 @@
import QtQuick 2.2
import QtTest 1.0
-import QtQuick.Extras 2.0
+import QtQuick.Controls 2.0
TestCase {
id: testCase
diff --git a/tests/auto/extras/data/tst_tumbler.qml b/tests/auto/controls/data/tst_tumbler.qml
index 928d53fa..c916b0f6 100644
--- a/tests/auto/extras/data/tst_tumbler.qml
+++ b/tests/auto/controls/data/tst_tumbler.qml
@@ -40,7 +40,7 @@
import QtQuick 2.2
import QtTest 1.0
-import QtQuick.Extras 2.0
+import QtQuick.Controls 2.0
TestCase {
id: testCase
@@ -57,7 +57,7 @@ TestCase {
readonly property real defaultListViewTumblerOffset: -defaultImplicitDelegateHeight
function init() {
- tumbler = Qt.createQmlObject("import QtQuick.Extras 2.0; Tumbler { }", testCase, "");
+ tumbler = Qt.createQmlObject("import QtQuick.Controls 2.0; Tumbler { }", testCase, "");
verify(tumbler, "Tumbler: failed to create an instance");
compare(tumbler.contentItem.parent, tumbler);
}
diff --git a/tests/auto/extras/extras.pro b/tests/auto/extras/extras.pro
deleted file mode 100644
index 434e4196..00000000
--- a/tests/auto/extras/extras.pro
+++ /dev/null
@@ -1,12 +0,0 @@
-TEMPLATE = app
-TARGET = tst_extras
-CONFIG += qmltestcase
-
-SOURCES += \
- $$PWD/tst_extras.cpp
-
-TESTDATA += \
- $$PWD/data/*
-
-OTHER_FILES += \
- $$PWD/data/*
diff --git a/tests/auto/extras/tst_extras.cpp b/tests/auto/extras/tst_extras.cpp
deleted file mode 100644
index 057176d1..00000000
--- a/tests/auto/extras/tst_extras.cpp
+++ /dev/null
@@ -1,38 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2015 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL3$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see http://www.qt.io/terms-conditions. For further
-** information use the contact form at http://www.qt.io/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPLv3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or later as published by the Free
-** Software Foundation and appearing in the file LICENSE.GPL included in
-** the packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 2.0 requirements will be
-** met: http://www.gnu.org/licenses/gpl-2.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QtQuickTest/quicktest.h>
-QUICK_TEST_MAIN(tst_extras)
diff --git a/tests/auto/sanity/tst_sanity.cpp b/tests/auto/sanity/tst_sanity.cpp
index a32502f0..1b9eebdd 100644
--- a/tests/auto/sanity/tst_sanity.cpp
+++ b/tests/auto/sanity/tst_sanity.cpp
@@ -149,7 +149,6 @@ void tst_Sanity::initTestCase()
foreach (const QString &path, engine.importPathList()) {
files.unite(listQmlFiles(QDir(path + "/QtQuick/Calendar.2")));
files.unite(listQmlFiles(QDir(path + "/QtQuick/Controls.2")));
- files.unite(listQmlFiles(QDir(path + "/QtQuick/Extras.2")));
}
}
diff --git a/tests/auto/snippets/data/dial/qtquickextras2-dial-background.qml b/tests/auto/snippets/data/dial/qtquickextras2-dial-background.qml
index bdd95411..b9a48498 100644
--- a/tests/auto/snippets/data/dial/qtquickextras2-dial-background.qml
+++ b/tests/auto/snippets/data/dial/qtquickextras2-dial-background.qml
@@ -1,5 +1,5 @@
import QtQuick 2.0
-import QtQuick.Extras 2.0
+import QtQuick.Controls 2.0
Dial {
Rectangle {
diff --git a/tests/auto/snippets/data/dial/qtquickextras2-dial-handle.qml b/tests/auto/snippets/data/dial/qtquickextras2-dial-handle.qml
index f7ab5d4d..9851478e 100644
--- a/tests/auto/snippets/data/dial/qtquickextras2-dial-handle.qml
+++ b/tests/auto/snippets/data/dial/qtquickextras2-dial-handle.qml
@@ -1,5 +1,5 @@
import QtQuick 2.0
-import QtQuick.Extras 2.0
+import QtQuick.Controls 2.0
Dial {
id: dial
diff --git a/tests/auto/snippets/data/tumbler/qtquickextras2-tumbler-background.qml b/tests/auto/snippets/data/tumbler/qtquickextras2-tumbler-background.qml
index 93fc9e5e..5a9832c4 100644
--- a/tests/auto/snippets/data/tumbler/qtquickextras2-tumbler-background.qml
+++ b/tests/auto/snippets/data/tumbler/qtquickextras2-tumbler-background.qml
@@ -1,5 +1,5 @@
import QtQuick 2.0
-import QtQuick.Extras 2.0
+import QtQuick.Controls 2.0
Tumbler {
model: 5
diff --git a/tests/auto/snippets/data/tumbler/qtquickextras2-tumbler-contentItem.qml b/tests/auto/snippets/data/tumbler/qtquickextras2-tumbler-contentItem.qml
index 0bb25dff..51a0a7bb 100644
--- a/tests/auto/snippets/data/tumbler/qtquickextras2-tumbler-contentItem.qml
+++ b/tests/auto/snippets/data/tumbler/qtquickextras2-tumbler-contentItem.qml
@@ -1,5 +1,5 @@
import QtQuick 2.0
-import QtQuick.Extras 2.0
+import QtQuick.Controls 2.0
Tumbler {
model: 5
diff --git a/tests/auto/snippets/data/tumbler/qtquickextras2-tumbler-delegate.qml b/tests/auto/snippets/data/tumbler/qtquickextras2-tumbler-delegate.qml
index 2b775c11..d7f02c0c 100644
--- a/tests/auto/snippets/data/tumbler/qtquickextras2-tumbler-delegate.qml
+++ b/tests/auto/snippets/data/tumbler/qtquickextras2-tumbler-delegate.qml
@@ -1,5 +1,5 @@
import QtQuick 2.0
-import QtQuick.Extras 2.0
+import QtQuick.Controls 2.0
Tumbler {
id: tumbler
diff --git a/tests/benchmarks/creationtime/tst_creationtime.cpp b/tests/benchmarks/creationtime/tst_creationtime.cpp
index 47416045..9185d5b5 100644
--- a/tests/benchmarks/creationtime/tst_creationtime.cpp
+++ b/tests/benchmarks/creationtime/tst_creationtime.cpp
@@ -50,9 +50,6 @@ private slots:
void calendar();
void calendar_data();
- void extras();
- void extras_data();
-
private:
QQmlEngine engine;
};
@@ -128,20 +125,6 @@ void tst_CreationTime::calendar_data()
addTestRows(engine.importPathList(), "QtQuick/Calendar.2");
}
-void tst_CreationTime::extras()
-{
- QFETCH(QByteArray, control);
- QQmlComponent component(&engine);
- component.setData("import QtQuick.Extras 2.0;" + control + "{}", QUrl());
- doBenchmark(&component);
-}
-
-void tst_CreationTime::extras_data()
-{
- QTest::addColumn<QByteArray>("control");
- addTestRows(engine.importPathList(), "QtQuick/Extras.2");
-}
-
QTEST_MAIN(tst_CreationTime)
#include "tst_creationtime.moc"
diff --git a/tests/manual/gifs/data/qtquickextras2-tumbler-wrap.qml b/tests/manual/gifs/data/qtquickcontrols2-tumbler-wrap.qml
index e2517d53..1fcaeba7 100644
--- a/tests/manual/gifs/data/qtquickextras2-tumbler-wrap.qml
+++ b/tests/manual/gifs/data/qtquickcontrols2-tumbler-wrap.qml
@@ -40,7 +40,6 @@
import QtQuick 2.6
import QtQuick.Controls 2.0
-import QtQuick.Extras 2.0
Item {
width: 200
diff --git a/tests/manual/gifs/tst_gifs.cpp b/tests/manual/gifs/tst_gifs.cpp
index da33eec0..a74fa894 100644
--- a/tests/manual/gifs/tst_gifs.cpp
+++ b/tests/manual/gifs/tst_gifs.cpp
@@ -81,7 +81,7 @@ void tst_Gifs::tumblerWrap()
gifRecorder.setDataDirPath(dataDirPath);
gifRecorder.setOutputDir(outputDir);
gifRecorder.setRecordingDuration(4);
- gifRecorder.setQmlFileName("qtquickextras2-tumbler-wrap.qml");
+ gifRecorder.setQmlFileName("qtquickcontrols2-tumbler-wrap.qml");
gifRecorder.setView(&view);
view.show();