diff options
author | Liang Qi <liang.qi@qt.io> | 2016-06-01 13:18:06 +0200 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2016-06-01 13:19:21 +0200 |
commit | 14e08bafc88824f3d16602b04b5e60ae8c4005b0 (patch) | |
tree | 47a831782fe60e26e6bba7ff8e5a0c3ac0a81c42 /examples | |
parent | 2ebb1fdcafaba9d3b0e7fbb42ccd5c3ffde38fbf (diff) | |
parent | ceaf6177a8be6db22e629ff05a625e278025b071 (diff) |
Merge remote-tracking branch 'origin/5.7' into dev
Comparing colors in tst_material.qml works fine now.
Conflicts:
examples/quickcontrols2/gallery/qtquickcontrols2.conf
tests/auto/material/data/tst_material.qml
Task-number: QTBUG-53556
Change-Id: I59970442a09bd72bf0ce53fe838c560ca8daf325
Diffstat (limited to 'examples')
27 files changed, 17 insertions, 7 deletions
diff --git a/examples/quickcontrols2/gallery/doc/images/qtquickcontrols2-gallery-drawer.png b/examples/quickcontrols2/gallery/doc/images/qtquickcontrols2-gallery-drawer.png Binary files differindex 57ec1026..9109fdda 100644 --- a/examples/quickcontrols2/gallery/doc/images/qtquickcontrols2-gallery-drawer.png +++ b/examples/quickcontrols2/gallery/doc/images/qtquickcontrols2-gallery-drawer.png diff --git a/examples/quickcontrols2/gallery/doc/images/qtquickcontrols2-gallery-menu.png b/examples/quickcontrols2/gallery/doc/images/qtquickcontrols2-gallery-menu.png Binary files differindex 5b34264e..3cbfbe65 100644 --- a/examples/quickcontrols2/gallery/doc/images/qtquickcontrols2-gallery-menu.png +++ b/examples/quickcontrols2/gallery/doc/images/qtquickcontrols2-gallery-menu.png diff --git a/examples/quickcontrols2/gallery/doc/images/qtquickcontrols2-gallery-welcome.png b/examples/quickcontrols2/gallery/doc/images/qtquickcontrols2-gallery-welcome.png Binary files differindex 5c2bb682..e69e7e46 100644 --- a/examples/quickcontrols2/gallery/doc/images/qtquickcontrols2-gallery-welcome.png +++ b/examples/quickcontrols2/gallery/doc/images/qtquickcontrols2-gallery-welcome.png diff --git a/examples/quickcontrols2/gallery/gallery.qml b/examples/quickcontrols2/gallery/gallery.qml index 567325ad..113874a9 100644 --- a/examples/quickcontrols2/gallery/gallery.qml +++ b/examples/quickcontrols2/gallery/gallery.qml @@ -58,6 +58,8 @@ ApplicationWindow { } header: ToolBar { + Material.foreground: "white" + RowLayout { spacing: 20 anchors.fill: parent diff --git a/examples/quickcontrols2/gallery/gallery.qrc b/examples/quickcontrols2/gallery/gallery.qrc index ba5fb595..01c61324 100644 --- a/examples/quickcontrols2/gallery/gallery.qrc +++ b/examples/quickcontrols2/gallery/gallery.qrc @@ -18,6 +18,14 @@ <file>images/menu@2x.png</file> <file>images/menu@3x.png</file> <file>images/menu@4x.png</file> + <file>images/+material/drawer.png</file> + <file>images/+material/drawer@2x.png</file> + <file>images/+material/drawer@3x.png</file> + <file>images/+material/drawer@4x.png</file> + <file>images/+material/menu.png</file> + <file>images/+material/menu@2x.png</file> + <file>images/+material/menu@3x.png</file> + <file>images/+material/menu@4x.png</file> <file>images/qt-logo.png</file> <file>images/qt-logo@2x.png</file> <file>images/qt-logo@3x.png</file> diff --git a/examples/quickcontrols2/gallery/images/+material/drawer.png b/examples/quickcontrols2/gallery/images/+material/drawer.png Binary files differnew file mode 100644 index 00000000..615cc817 --- /dev/null +++ b/examples/quickcontrols2/gallery/images/+material/drawer.png diff --git a/examples/quickcontrols2/gallery/images/+material/drawer@2x.png b/examples/quickcontrols2/gallery/images/+material/drawer@2x.png Binary files differnew file mode 100644 index 00000000..b1dd106d --- /dev/null +++ b/examples/quickcontrols2/gallery/images/+material/drawer@2x.png diff --git a/examples/quickcontrols2/gallery/images/+material/drawer@3x.png b/examples/quickcontrols2/gallery/images/+material/drawer@3x.png Binary files differnew file mode 100644 index 00000000..289889bf --- /dev/null +++ b/examples/quickcontrols2/gallery/images/+material/drawer@3x.png diff --git a/examples/quickcontrols2/gallery/images/+material/drawer@4x.png b/examples/quickcontrols2/gallery/images/+material/drawer@4x.png Binary files differnew file mode 100644 index 00000000..215e6a82 --- /dev/null +++ b/examples/quickcontrols2/gallery/images/+material/drawer@4x.png diff --git a/examples/quickcontrols2/gallery/images/+material/menu.png b/examples/quickcontrols2/gallery/images/+material/menu.png Binary files differnew file mode 100644 index 00000000..f02429e9 --- /dev/null +++ b/examples/quickcontrols2/gallery/images/+material/menu.png diff --git a/examples/quickcontrols2/gallery/images/+material/menu@2x.png b/examples/quickcontrols2/gallery/images/+material/menu@2x.png Binary files differnew file mode 100644 index 00000000..9309ad9a --- /dev/null +++ b/examples/quickcontrols2/gallery/images/+material/menu@2x.png diff --git a/examples/quickcontrols2/gallery/images/+material/menu@3x.png b/examples/quickcontrols2/gallery/images/+material/menu@3x.png Binary files differnew file mode 100644 index 00000000..7bddf71f --- /dev/null +++ b/examples/quickcontrols2/gallery/images/+material/menu@3x.png diff --git a/examples/quickcontrols2/gallery/images/+material/menu@4x.png b/examples/quickcontrols2/gallery/images/+material/menu@4x.png Binary files differnew file mode 100644 index 00000000..e5c23a3b --- /dev/null +++ b/examples/quickcontrols2/gallery/images/+material/menu@4x.png diff --git a/examples/quickcontrols2/gallery/images/arrow.png b/examples/quickcontrols2/gallery/images/arrow.png Binary files differindex 340139de..d81accbb 100644 --- a/examples/quickcontrols2/gallery/images/arrow.png +++ b/examples/quickcontrols2/gallery/images/arrow.png diff --git a/examples/quickcontrols2/gallery/images/arrow@2x.png b/examples/quickcontrols2/gallery/images/arrow@2x.png Binary files differindex ef2016e9..309c0187 100644 --- a/examples/quickcontrols2/gallery/images/arrow@2x.png +++ b/examples/quickcontrols2/gallery/images/arrow@2x.png diff --git a/examples/quickcontrols2/gallery/images/arrow@3x.png b/examples/quickcontrols2/gallery/images/arrow@3x.png Binary files differindex 86c8506b..e146ecc9 100644 --- a/examples/quickcontrols2/gallery/images/arrow@3x.png +++ b/examples/quickcontrols2/gallery/images/arrow@3x.png diff --git a/examples/quickcontrols2/gallery/images/arrow@4x.png b/examples/quickcontrols2/gallery/images/arrow@4x.png Binary files differindex ce70d95b..b2ad27f3 100644 --- a/examples/quickcontrols2/gallery/images/arrow@4x.png +++ b/examples/quickcontrols2/gallery/images/arrow@4x.png diff --git a/examples/quickcontrols2/gallery/images/arrows.png b/examples/quickcontrols2/gallery/images/arrows.png Binary files differindex f77e01fa..d38b94a4 100644 --- a/examples/quickcontrols2/gallery/images/arrows.png +++ b/examples/quickcontrols2/gallery/images/arrows.png diff --git a/examples/quickcontrols2/gallery/images/arrows@2x.png b/examples/quickcontrols2/gallery/images/arrows@2x.png Binary files differindex 9615d436..69b9342b 100644 --- a/examples/quickcontrols2/gallery/images/arrows@2x.png +++ b/examples/quickcontrols2/gallery/images/arrows@2x.png diff --git a/examples/quickcontrols2/gallery/images/arrows@3x.png b/examples/quickcontrols2/gallery/images/arrows@3x.png Binary files differindex b6a53e1c..77032526 100644 --- a/examples/quickcontrols2/gallery/images/arrows@3x.png +++ b/examples/quickcontrols2/gallery/images/arrows@3x.png diff --git a/examples/quickcontrols2/gallery/images/arrows@4x.png b/examples/quickcontrols2/gallery/images/arrows@4x.png Binary files differindex 099ed1b5..66c1fac5 100644 --- a/examples/quickcontrols2/gallery/images/arrows@4x.png +++ b/examples/quickcontrols2/gallery/images/arrows@4x.png diff --git a/examples/quickcontrols2/gallery/images/qt-logo.png b/examples/quickcontrols2/gallery/images/qt-logo.png Binary files differindex 8b0772b0..90e6f905 100644 --- a/examples/quickcontrols2/gallery/images/qt-logo.png +++ b/examples/quickcontrols2/gallery/images/qt-logo.png diff --git a/examples/quickcontrols2/gallery/images/qt-logo@2x.png b/examples/quickcontrols2/gallery/images/qt-logo@2x.png Binary files differindex 0d1d499b..22d111ad 100644 --- a/examples/quickcontrols2/gallery/images/qt-logo@2x.png +++ b/examples/quickcontrols2/gallery/images/qt-logo@2x.png diff --git a/examples/quickcontrols2/gallery/images/qt-logo@3x.png b/examples/quickcontrols2/gallery/images/qt-logo@3x.png Binary files differindex c9aae358..627746cd 100644 --- a/examples/quickcontrols2/gallery/images/qt-logo@3x.png +++ b/examples/quickcontrols2/gallery/images/qt-logo@3x.png diff --git a/examples/quickcontrols2/gallery/images/qt-logo@4x.png b/examples/quickcontrols2/gallery/images/qt-logo@4x.png Binary files differindex ad0ebd03..dc62286d 100644 --- a/examples/quickcontrols2/gallery/images/qt-logo@4x.png +++ b/examples/quickcontrols2/gallery/images/qt-logo@4x.png diff --git a/examples/quickcontrols2/gallery/pages/DelegatePage.qml b/examples/quickcontrols2/gallery/pages/DelegatePage.qml index c3fa06c5..3d175fd8 100644 --- a/examples/quickcontrols2/gallery/pages/DelegatePage.qml +++ b/examples/quickcontrols2/gallery/pages/DelegatePage.qml @@ -70,13 +70,13 @@ Pane { text: labelText width: parent.width - onClicked: if (exposure.active) view.model.remove(ourIndex) + onClicked: if (swipe.complete) view.model.remove(ourIndex) Component { id: removeComponent Rectangle { - color: swipeDelegate.exposed && swipeDelegate.pressed ? "#333" : "#444" + color: swipeDelegate.swipe.complete && swipeDelegate.pressed ? "#333" : "#444" width: parent.width height: parent.height clip: true @@ -90,8 +90,8 @@ Pane { } } - exposure.left: removeComponent - exposure.right: removeComponent + swipe.left: removeComponent + swipe.right: removeComponent } } diff --git a/examples/quickcontrols2/gallery/qtquickcontrols2.conf b/examples/quickcontrols2/gallery/qtquickcontrols2.conf index e219ac1a..da1a8f41 100644 --- a/examples/quickcontrols2/gallery/qtquickcontrols2.conf +++ b/examples/quickcontrols2/gallery/qtquickcontrols2.conf @@ -1,8 +1,8 @@ [Material] -Primary=LightGreen -Accent=LightGreen +Primary=#41cd52 +Accent=#41cd52 Theme=System [Universal] -Accent=Green +Accent=#41cd52 Theme=System |